[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: Michael Kay <mike@saxonica.com>
Date: Mon, 27 Apr 2009 17:03:05 +0100
To: "'C. M. Sperberg-McQueen'" <cmsmcq@blackmesatech.com>, "'Costello, Roger L.'" <costello@mitre.org>
Cc: <xmlschema-dev@w3.org>
Message-ID: <E9DDC9BEDC9443C49D5AAD47D06A1CE0@Sealion>
RE: [XML Schema 1.1] Using doc() in xs:assert ...  the referenced  document needs a schema?
> The Last Call draft of XSD 1.1 says that 
> the 'available documents' property of the dynamic context for 
> XPath evaluation on assertions is the empty set.  That should 
> mean, if I understand correctly, that the subexpression 
> doc('countries.xml') returns the empty node sequence.

On a technicality, no: it means it throws an error, which has the same
effect as when the assertion evaluates to false. But this doesn't affect the
rest of your argument.

Michael Kay
http://www.saxonica.com/
Received on Monday, 27 April 2009 16:08:27 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.