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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--