Re: templates and iterating attributes from xpath expression

"rvj" <[email protected]> Thu, 20 Nov 2008 13:40:47 -0000
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
OK seems Ive found a working solution since  @* defaults to the first 
attribute which is good enough for my needs

- if this is a bug PLEASE DONT FIX IT!!



"rvj" <[email protected]> wrote in message 
news:[email protected]...
>
> I doubt it can be done but ..........
>
> I ve been trying to see if ASSIGN might return  a list of current 
> attributes (or ideally a specific ndexed attribute)
>
> Having hunted around I came across
>
> http://www.velocityreviews.com/forums/t167301-seek-xpath-expression-where-an-attribute-name-is-a-regular-expression.html
>
> which seems to suggest  that
>
>      <assign var="?findattributenames" 
> expr="contains(local-name(@*),'gender')"/>
>
> should select the attribute 'gender'  (using people.xml). this returns 
> false.
>
> Is this correct?
>
>
>
>
>
>
>
>
>
>