Re: [xml] Register default namespace prefix to the xpath context



At Mon, 17 Dec 2001 07:27:24 +0000 (GMT),
Matt Sergeant     wrote:

Are there any way to register a zero length namespace prefix
(default namespace) to the xpath context?

No. This is one of XPath's major weaknesses, IMHO. THe spec simply doesn't
allow for unprefixed names mapping to the default namespace, and so Daniel
has implemented that spec as it should be.

(A lot of people have come up against this with XSLT using grammars like
xhtml, where the HTML-like elements are in the default namespace).


I'm sorry I didn't know it was XPath's major problem.
I will register some non-zero prefix to xpath context for
default namespace.

Thanks.

--
Yuuichi Teranishi <teranisi gohome org>
PGP 5.0i Public Key: http://www.gohome.org/pgp5/teranisi.key
"So we sailed out of the sun till we found the see of green..."



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]