From:  Martin Honnen <mahotrash@yahoo.de>
Date:  24 Nov 2008 20:35:17 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.dev.tech.xml
Subject:  

Re: templates and iterating attributes from xpath expression

NNTP-Posting-Host:  83.135.142.57

rvj wrote:
> thanks - just about getting there
> 
> ps had any problem with parent syntax ?  ../@*[1]  seems ok but problems 
> with
> 
>     a) ../name()
         name(..)
gives you the name of the parent in XPath 1.0.

>     b) ../name(@*[1])

         name(../@*[1])
gives you the name of the first attribute of the parent in XPath 1.0.

The syntax you have choosen is allowed in XPath 2.0 and XQuery 1.0 but 
not in XPath 1.0.


-- 

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