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
Received on Monday, 27 April 2009 16:08:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:16 UTC