[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: copy of attributes
Andrey V. Elsukov wrote:
That would probably work but you can also do this:<xsl:template name="attributes"> <xsl:for-each select="attribute::*"> <xsl:attribute name="{name()}"> <xsl:value-of select="self::node()"/> </xsl:attribute> </xsl:for-each> </xsl:template> <xsl:template match="node"> <xsl:copy-of select="@*"/> </xsl:template> Cheers, Anton
|
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
|