[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Re: nearly FAQ .. (numbering of elements)


Subject: Re: [xsl] Re: nearly FAQ .. (numbering of elements)
From: "Agnes Kielen" <agnes.kielen@xxxxxxx>
Date: Mon, 26 Jan 2004 19:44:11 +0100

Hi,

> On Mon, Jan 26, 2004 at 04:13:19PM +0100,
>  Kielen, Agnes <Agnes.Kielen@xxxxxxxxxxxxxx> wrote >
> > Use the position() function
http://www.dpawson.co.uk/xsl/sect2/N6099.html.
>
> Which will work only if all the elements are "interesting", i.e. must
> be counted. I prefer Andrew Welch's solution.
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>

It depends what is more important the sequence in the source or the sequence
in the result. When you're interested in the sequence in the result
position() is the right choice. xsl:number is the rigth choice when you're
interested in the source. Anyhow xsl:number can cost a lot of  performance.
Cheers,
Agnes



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread