Re: templates and iterating attributes from xpath expression
"rvj" <[email protected]> Mon, 24 Nov 2008 15:22:26 -0000
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Great ! "Martin Honnen" <[email protected]> wrote in message news:[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/