W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

XSD extension proposal: customizing error messages

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Wed, 31 Oct 2001 22:58:49 +0100
Message-ID: <3BE07419.3070606@dyomedea.com>
To: xmlschema-dev@w3.org

Testing some derivations, I can't say I find the error messages always 
very user friendly (especially in the case of patterns) and I think that 
it would be nice to be able to customize the error messages.

This may be done using one of the extensions mechanisms available in W3C 
XML Schema: either xs:annotation/xs:appinfo or non W3C XML Schema 
attributes in the facets.

In both cases, a customized user message would be included in the schema 
  end the schema processor could display "A timezone is required for 
this date" instead of "value does not match pattern @#&$!".

If this proposal would interest some of the editors of schema 
processors, we could setup a common namespace to "standardize" such 
extensions (like it has be done by EXSLT for XSLT).

Rendez-vous  Paris pour le Forum XML.
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
Received on Wednesday, 31 October 2001 16:58:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:55 UTC