Re: templates and iterating attributes from xpath expression

"rvj" <[email protected]> Mon, 24 Nov 2008 08:07:55 -0000
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
thanks - just about getting there

ps had any problem with parent syntax ?  ../@*[1]  seems ok but problems 
with

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



"Martin Honnen" <[email protected]> wrote in message 
news:[email protected]...
> rvj wrote:
>> OK seems Ive found a working solution since  @* defaults to the first 
>> attribute which is good enough for my needs
>
>
>>> expr="contains(local-name(@*),'gender')"/>
>
> @* selects a node-set of all attribute but local-name(@*) returns the name 
> of the first node in that node-set.
>
>
> -- 
>
> Martin Honnen
> http://JavaScript.FAQTs.com/