Re: [xsl] XPath problem with namespace attribute

Subject: Re: [xsl] XPath problem with namespace attribute
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 05 Sep 2008 19:12:30 +0200
Matthew Hailstone wrote:
Solved it.

Looks like another option is to put the empty prefix in my XPath.

/One/Two/:Three/:Four/:Five

I don't think this is proper syntax. Proper XPath 2.0 syntax is
/One/Two/*:Three/*:Four/*:Five
with XPath 1.0 you can only do
/One/Two/*[local-name() = 'Three']/*[local-name() = 'Four']/*[local-name() = 'Five']


--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread