Re: templates and iterating attributes from xpath expression
Martin Honnen <[email protected]> Mon, 24 Nov 2008 13:35:17 +0100
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
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/