[xsl] How to sort attribute?

Subject: [xsl] 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