This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

xsl:number question


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]