Re: templates and iterating attributes from xpath expression
"rvj" <[email protected]> Thu, 20 Nov 2008 14:11:36 -0000
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
seems not - seems @*[index number] is the syntax I was looking for !
"rvj" <[email protected]> wrote in message
news:[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?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>