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

Re: using external document in assertions

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Sat, 19 Dec 2009 21:27:30 +0530
Message-ID: <7870f82e0912190757r4841a872t734cf6f1fc56c36d@mail.gmail.com>
To: Michael Kay <mike@saxonica.com>
Cc: www-xml-schema-comments@w3.org
Thanks, Mike for the answer.

This clarifies my doubt.

On Sat, Dec 19, 2009 at 8:44 PM, Michael Kay <mike@saxonica.com> wrote:
> Yes, doc() is not allowed in assertions according to the spec: or rather,
> the set of accessible documents is empty, therefore the call will always
> fail, therefore the assertion will be false.
> The WG took the view, I think, that it did not want to open the door to
> letting the validity of an element be entirely context-dependent. Clearly
> there are use cases, such as code lists, where this is exactly what the user
> wants, but it does dramatically change what we mean by validity if it
> depends on anything other than the instance document and the schema.
> Regards,
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay

Mukul Gandhi
Received on Saturday, 19 December 2009 15:58:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:10 UTC