[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Identifier attribute (was: Re: Creating Hi
Rowan Sylvester-Bradley schrieb:
Now I've got a further problem - the second pass is inserting the values in the id attributes, but it's dropping any other attributes that are in the result of pass1. Hi Rowan, just add an xsl:copy-of to copy the attributes as follows: <xsl:template match="*[@id]"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:attribute name="id"> <xsl:number level="any" count="*[@id]"/> </xsl:attribute> <xsl:apply-templates/> </xsl:copy> </xsl:template>
Michael Ludwig
|
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
|