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

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

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