This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:number question
- To: xsl-list at mulberrytech dot com
- Subject: xsl:number question
- From: "Perry Molendijk" <p_molendijk at hotmail dot com>
- Date: Fri, 12 May 2000 08:29:43 PDT
- Reply-To: xsl-list at mulberrytech dot com
The xml:
<page>
<form orgcode="One"/>
<form orgcode="Two"/>
<form orgcode="Three"/>
<form orgcode="Four"/>
</page>
The xsl:
<xsl:template match="form">
<xsl:variable name="formPosition">
<xsl:number value="position()">
</xsl:variable>
<tr>
<td><xsl:value-of select="./@orgcode"/> - <xsl:value-of
select="$formPosition"/></td>
</tr>
</xsl:template>
The onscreen output (html) looks like this:
One - 2
Two - 4
Three - 6
Four - 8
This could be a usefull feature but I want the numbers 1,2,3$4 returned. Can
anyone shed some light on this, please
BTW I use saxon as an xslt processor
Perry Molendijk
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list