RE: [xsl] position

Subject: RE: [xsl] position
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 1 Dec 2005 09:18:10 +0200

>     I am trying to find number of tags in my xml using XSLT.
>The XSLT is
><?xml version="1.0" encoding="UTF-8"?>
><xsl:stylesheet version="1.0"
><xsl:output method="text"/>
>	<xsl:template match="/">
>			<xsl:apply-templates
>	</xsl:template>
>	<xsl:template match="ReferenceTaskDb">
>		<result> <xsl:value-of select="position()"/></result>
>	</xsl:template>
>   It is returning 1. What is the wrong here ?

See You want <xsl:number/>


Current Thread