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

RE: [XML Schema 1.1] Using doc() in xs:assert ... the referenced document needs a schema?

From: Costello, Roger L. <costello@mitre.org>
Date: Mon, 27 Apr 2009 12:03:56 -0400
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB5003F245AA7B@IMCMBX3.MITRE.ORG>
RE: [XML Schema 1.1] Using doc() in xs:assert ...  the referenced   document needs a schema?

Hi Michael,

> Can you provide a little more information?  Where did you discover
> these requirements?  

I discovered these "requirement" upon using SAXON. Michael Kay has since informed me that this is unique to SAXON, and is not in the specification.

> Making the 'available documents' property be the empty set helps
> ensure (a) better interoperability between validators, and (b) the
> context-independence of schema-validity assessment of an element
> or attribute against a declaration or type definition.  The
> context-independence of validation against a type is important to
> many users of XSD (although not, I suspect, to all).

I'm not clear on (b) but (a) certainly sounds like the decision to disallow doc() for cross-document validation was done to make it easier to implement 1.1 schema validators. Validators are built once, but used many times. Disallowing doc() seems to sacrifice XSD 1.1 usability in favor of ease of validator implementations.

/Roger 
Received on Monday, 27 April 2009 16:04:33 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.