xsl-list
[Top] [All Lists]

Re: Re: nearly FAQ .. (numbering of elements)

2004-01-26 11:44:11
Hi,

On Mon, Jan 26, 2004 at 04:13:19PM +0100,
 Kielen, Agnes <Agnes(_dot_)Kielen(_at_)atosorigin(_dot_)com> 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



<Prev in Thread] Current Thread [Next in Thread>