Identity constraints and default namespace

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 UTC