W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2009

RE: Possible to restrict top-level xs:element names?

From: Michael Kay <mike@saxonica.com>
Date: Sat, 7 Nov 2009 10:25:13 -0000
To: "'C. M. Sperberg-McQueen'" <cmsmcq@blackmesatech.com>, "'kennardconsulting'" <richard@kennardconsulting.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <D40E202A54094FB2AD4F3CD0496F6136@Sealion>
>    (b) make sure your processor distinguishes between elements
>        with [validity]=invalid and those with [validity]=notKnown
>        (again, how you do this is between you and your processor,
>        and out of scope for the XSD spec); and

You might like to note that Saxon's schema processor, and perhaps some other
products, expose this distinction by allowing you to select "strict" or
"lax" validation. Strict validation fails if the outcome is
[validity]=notKnown, whereas lax validation succeeds.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 
Received on Saturday, 7 November 2009 10:25:46 GMT

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