[Home] [By Thread] [By Date] [Recent Entries]
I have the following xml file and wish to generate ID-s based on the position to the<w> elements with the following XSL file, however, the end result of the ID attribute is always 1, I have no idea why. The reason the value is always 1 is that the @ID attribute is always at position 1 in the list of nodes selected by <xsl:apply-templates select="@*|node()|comment()|processing-instruction()"/> If you want the position in the source tree of the parent element of the @ID attribute, try<xsl:number/>. Michael Kay Saxonica Limited
|

Cart



