xsl:number question

Subject: xsl:number question
From: "Perry Molendijk" <p_molendijk@xxxxxxxxxxx>
Date: Fri, 12 May 2000 08:29:43 PDT
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



Current Thread