[Home] [By Thread] [By Date] [Recent Entries]

Subject: How to sort attribute?
From: "John Li" <johnli121@xxxxxxx>
Date: Sat, 13 Aug 2005 17:11:25 +0800
Hi,

When exporting one node and its attribute, I want to sort its attributes
lexicographic. I try it as below but always fail. Anyone could help?

<xsl:for-each select="@*">
    <xsl:sort select="name()"/>
    <xsl:copy/>
</xsl:for-each>

Thanks,
John

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member