cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Gilbert" <doug.gilb...@nottingham.ac.uk>
Subject numbering newbie
Date Wed, 08 May 2002 10:49:17 GMT
Hi, 
I am trying to number a series of elements gathered from an sql query that gives me a result
set like thus:

<somestuff><id = 401></id>..more content here<morestuff>...<subid></subid>the
content here I need to number .....</morestuff></somestuff>
<somestuff><id = 401></id>..more content here<morestuff>...<subid></subid>the
content here I need to number .....</morestuff></somestuff>
<somestuff><id = 401></id>..more content here<morestuff>...<subid></subid>the
content here I need to number .....</morestuff></somestuff>
<somestuff><id = 765></id>..more content here<morestuff>...<subid></subid>the
content here I need to number .....</morestuff></somestuff>
<somestuff><id = 765></id>..more content here<morestuff>...<subid></subid>the
content here I need to number .....</morestuff></somestuff>
<somestuff><id = 952></id>..more content here<morestuff>...<subid></subid>the
content here I need to number .....</morestuff></somestuff>

I need to number the nodes relative to their position within id thus
id = 401-subid = 1
            -subid = 2
            -subid = 3

etc
I have tried  number and position, but what I really need is to increment a counter, I know
this appears to be out of the question, so....any help would be fantastic

Thanks
                





Mime
View raw message