[Home] [By Thread] [By Date] [Recent Entries]
Tempore 17:50:00, die 02/02/2005 AD, hinc in
xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Robert Soesemann
<rsoesemann@xxxxxxxxxxx>:
How can I copy elements from a key and add an attribute to every copied element containing its position in the sequence. Hi, Use something like: <xsl:for-each select="key('textItems',generate-id())[name() ='my-include']"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:attribute name="position"> <xsl:value-of select="position()"/> </xsl:attribute> <xsl:copy-of select="node()"/> </xsl:copy> </xsl:for-each>
|

Cart



