[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: any processContents strict

From: Michael Kay <mike@saxonica.com>
Date: Wed, 25 Jan 2006 12:00:31 -0000
To: "'Bryan Rasmussen'" <brs@itst.dk>, <xmlschema-dev@w3.org>
Message-ID: <E1F1jKS-00072l-96@maggie.w3.org>
any processcontents

> If I send an instance to a validator and it encounters 
> content it does not
> understand it is up to the processor if it defaults to 
> validate strict, lax, skip....

I would have said it is up to the user, but the way the user tells the
processor what they want is implementation-defined.

> But if I have an xsd:any and set the processContents to be 
> strict then the
> processor must follow the strict validation model for 
> everything that within
> the element that can hold 'any', correct? 

Yes.

IIRC there is some ambiguity about processContents="lax", if you find an
element for which there is no global element declaration, whether you "skip"
it, or apply lax validation to its children.

Michael Kay
http://www.saxonica.com/
Received on Wednesday, 25 January 2006 12:00:53 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.