[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] numerating nodes in doc-flow
Hello guys! I have to enumerate nodes in the document-flow order using xslt 1.0. I thought that's not difficult but the following template does nothing. Can you help me? <xsl:template match="node()"> <xsl:param name="counter" select="0"/> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:attribute name="new_id" select="concat('item_', $counter)"/> <xsl:apply-templates select="occurrence/art"> <xsl:with-param name="counter" select="$counter+1"/> </xsl:apply-templates> </xsl:copy> </xsl:template> Thanks in advance! -- Alexey mailto:nikolaenkov@xxxxxxxxxxxx
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|