[Bug 5726] XPath Context for Assertions must not include Element Name

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5726





------- Comment #1 from mike@saxonica.com  2008-05-30 21:16 -------
I wonder whether this is being excessively purist? I can see users wanting to
reuse the same type for two different elements and then attach some
constraints, for example (in the schema for schemas) one could imagine defining
key, keyref, and unique as having the same complex type, and then add the
constraint that the ref attribute is allowed only if the element name is
keyref. Do we really want to defend a decision that we aren't allowing users to
do this because we thought it was architecturally impure? And users are going
to be very confused if they do test the element name and it doesn't match what
the element name "really is".

Also, we're providing other bits of context like the base URI and the namespace
context, which are equally impure.

Received on Friday, 30 May 2008 21:17:19 UTC