W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2002

RE: [xsl] Namespace wildcards

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 6 Feb 2002 01:24:20 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679C24@daemsg02.software-ag.de>
To: "'Jonas Sicking'" <sicking@bigfoot.com>, www-xpath-comments@w3.org
> it would IMHO have been better to use a "*:*" or "element()" 
> pattern for a
> NodeTest to match all elements.

You're probably right; unfortunately it's much too late to change this.
> 
> 2. It's impossible (in XSLT, and I would expect most other 
> XPath clients) to
> create a NameTest that matches all named nodes in the null 
> namespace. Not
> that *[namespace-uri() = ""] strictly speaking also selects 
> the nodes in the
> "" namespace, which is different from the null namespace.

No, I don't think XML namespaces allows a namespace URI of ""; that's why we
are able to have namespace-uri() return "" to indicate the null namespace.
> 
> 
> Unfortunately I don't see any way to solve this problem 
> without causing big
> compability problems with XPath1.0
> 
Nor do I.

Mike Kay
Received on Tuesday, 5 February 2002 19:24:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:54 GMT