W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2001

Identity constraints and default namespace

From: James Clark <jjc@jclark.com>
Date: Sun, 21 Jan 2001 12:15:55 +0700
Message-ID: <3A6A708B.53AEB4B@jclark.com>
To: XML Schema Comments <www-xml-schema-comments@w3.org>
CC: www-xpath-comments@w3.org
In the schema for schemas I see things like

           <key name="group">
            <selector xpath="group"/>
            <field xpath="@name"/>
           </key>

The XPath expression "group" will select child elements whose local name
is "group" and whose namespace URI is absent.  Yet the intention here
seems to be that it select elements whose namespace URI is the default
namespace in scope on the selector element.

(I think this is probably a bug in XPath. Although XSLT chooses not to
apply the default namespace to element names in XPath expressions, there
is no reason for XPath to require all referencing specs that use XPath
to do the same; it should be dependent on how referencing specs specify
that the namespace bindings part of the XPath expression context is set
up.)

James
Received on Sunday, 21 January 2001 00:27:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:49 GMT