xsl-list
[Top] [All Lists]

Re: XPATH problem with namespace

2004-10-07 04:23:06
Emmanouil Batsis wrote:


Apologies for the XSLT 2.0 newbie question but why does the XSLT author have to deal with two default namespaces in the same document? At first glance, it seems that making XPath aware of the XSLT document's default namespace is a simpler solution.

A single XPath expression can easily refer to nodes both in namespaces and nodes not in any namespace. It needs to be able to refer to each, and in Namespaces 1.0 there's no way to map a prefix to no namespace so unprefixed names must be reserved for names in no namespace.

--
Elliotte Rusty Harold  elharo(_at_)metalab(_dot_)unc(_dot_)edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN%3D0596007647/cafeaulaitA/ref%3Dnosim


<Prev in Thread] Current Thread [Next in Thread>