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
Hi,

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).

  Eric
-- 
Rendez-vous  Paris pour le Forum XML.
                    http://www.technoforum.fr/Pages/forumXML01/index.html
------------------------------------------------------------------------
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:24 GMT