Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 76708 invoked by uid 500); 8 May 2002 12:51:31 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 76149 invoked from network); 8 May 2002 12:51:25 -0000 Message-ID: <007801c1f68e$4f001940$1100000a@plaszczak> From: "Jerzy Kut" To: References: <008f01c1f67e$00527280$9e6cf380@nottingham.ac.uk> Subject: Re: numbering newbie Date: Wed, 8 May 2002 14:45:59 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0075_01C1F69F.117D6CB0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0075_01C1F69F.117D6CB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable When You use of esql logicsheet try: +1 Of course You need to insert it in Your generator and generator need to = be serverpages type. Regards Jerzy ----- Original Message -----=20 From: Doug Gilbert=20 To: cocoon-users@xml.apache.org=20 Sent: Wednesday, May 08, 2002 12:49 PM Subject: numbering newbie Hi,=20 I am trying to number a series of elements gathered from an sql query = that gives me a result set like thus: =20 ..more content = here...the content here I need to number = ..... ..more content = here...the content here I need to number = ..... ..more content = here...the content here I need to number = ..... ..more content = here...the content here I need to number = ..... ..more content = here...the content here I need to number = ..... ..more content = here...the content here I need to number = ..... I need to number the nodes relative to their position within id thus id =3D 401-subid =3D 1 -subid =3D 2 -subid =3D 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 =20 ------=_NextPart_000_0075_01C1F69F.117D6CB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
When You use of esql logicsheet=20 try:
<subid><xsp:expr><esql:get-row-position/>+1</xsp:expr>= ;</subid>
Of course You need to insert it in = Your=20 generator and generator need to be serverpages type.
Regards
Jerzy
----- Original Message -----
From:=20 Doug Gilbert
To: cocoon-users@xml.apache.org =
Sent: Wednesday, May 08, = 2002 12:49=20 PM
Subject: numbering = newbie

Hi,
I am trying to number a series of = elements=20 gathered from an sql query that gives me a result set like = thus:
 
<somestuff><id =3D=20 401></id>..more content=20 here<morestuff>...<subid></subid>the content here I = need to=20 number .....</morestuff></somestuff>
<somestuff><id =3D=20 401></id>..more content=20 here<morestuff>...<subid></subid>the content here I = need to=20 number .....</morestuff></somestuff>
<somestuff><id =3D=20 401></id>..more content=20 here<morestuff>...<subid></subid>the content here I = need to=20 number .....</morestuff></somestuff>
<somestuff><id =3D=20 765></id>..more content=20 here<morestuff>...<subid></subid>the content here I = need to=20 number .....</morestuff></somestuff>
<somestuff><id =3D=20 765></id>..more content=20 here<morestuff>...<subid></subid>the content here I = need to=20 number .....</morestuff></somestuff>
<somestuff><id =3D=20 952></id>..more content=20 here<morestuff>...<subid></subid>the content here I = need to=20 number .....</morestuff></somestuff>
 
I need to number the nodes relative to their position within id=20 thus
id =3D 401-subid =3D 1
=
           &n= bsp;-subid=20 =3D 2
=
           &n= bsp;-subid=20 =3D 3
 
etc
I have tried  number and position, but what I really need is = to=20 increment a counter, I know this appears to be out of the question, = so....any=20 help would be fantastic
 
Thanks
           =20    
 
 
 
 
------=_NextPart_000_0075_01C1F69F.117D6CB0--