cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erwin Burgstaller <...@knapp.co.at>
Subject Re: Number of last child
Date Thu, 01 Mar 2001 15:34:33 GMT
On Thu, 1 Mar 2001, Piroumian, Konstantin wrote:

>> A valid construct is:
>>
>> '//tablehead/thcol[position() = last()][position()]'
>>
>> which is the same as
>> '//tablehead/thcol[last()]'
>>
>> and I get the content of the last node
>
>Yes, that's correct if you want to get the content of the last node. I
>thought that you wanted to get the value of the last index. I mean the index
>of the last element and use it in a template.
>To get the last index you can simply use: count(/list/item)
>

No, I don't want the content but the index. So I tried count and it
works :-), thanks

Erwin

-- 
Erwin Burgstaller
KNAPP Logistics Automation                  (ber@knapp.co.at / +43 316 495-618)


Mime
View raw message