This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Reference a counter
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 13 May 2002 21:10:12 +0200
- Subject: Re: [xsl] Reference a counter
- References: <3C369333FC7BD21193A60000F8FE891F17EAF945@dlee02.itg.ti.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Early, Mary wrote:
> Is there any way to provide a reference to a counter value. For example, we
> typically use a superscripted number to reference a table note at the bottom
> of the table. How can we grab the counter value of the table note and place
> it in the cell as a cross reference.
>
Look up xsl:number, something like
<td><xsl:number count="note"/> Description</td>
You can also try
<xsl:value-of select="count(preceding::note)"/>
or similar expressions, depending on the details of your
problem.
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list