cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerzy Kut" <jer...@rzeszow.tiger.com.pl>
Subject Re: numbering newbie
Date Wed, 08 May 2002 12:45:59 GMT
When You use of esql logicsheet try:
<subid><xsp:expr><esql:get-row-position/>+1</xsp:expr></subid>
Of course You need to insert it in Your generator and generator need to be serverpages type.
Regards
Jerzy
  ----- Original Message ----- 
  From: Doug Gilbert 
  To: cocoon-users@xml.apache.org 
  Sent: Wednesday, May 08, 2002 12:49 PM
  Subject: numbering newbie


  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