W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2009

using external document in assertions

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Sat, 19 Dec 2009 16:47:19 +0530
Message-ID: <7870f82e0912190317o5a416fdbo9cd2681778615333@mail.gmail.com>
To: www-xml-schema-comments@w3.org
Hi all,
   While reading through the latest draft of XML Schema 1.1 spec, I
have a doubt while reading few things here,
http://www.w3.org/TR/xmlschema11-1/#ch_xpath (Assertions and XPath).

There is a point here, which says [1]:
The rules for the "available collections" and "default collection"
properties of the [XPath 2.0] dynamic context have been simplified;
these properties are now required to be the empty set instead of being
·implementation-defined·. This improves interoperability and resolves
issue 6540 Available documents in assertions.

Pls also see, http://www.w3.org/Bugs/Public/show_bug.cgi?id=6540 as
pointed by the above paragraph.

Does this mean, that if an XSD 1.1 implementation allows access to
external documents in assertions XPath expressions, then it is
non-conformant?

For e.g, is this assertion (referred from one of Roger L. Costello's
XSD 1.1 examples at, http://www.xfront.com/xml-schema-1-1/):
<assert test="$value = doc('countries.xml')//country" />

conformant according to the spec?

It seems to me, that an assertion like this is not conformant now, as
per the the reference I've provided from the spec, above [1].
But just wanted to confirm this from the group, here.


-- 
Regards,
Mukul Gandhi
Received on Saturday, 19 December 2009 11:18:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 19 December 2009 11:18:13 GMT