xsl-list
[Top] [All Lists]

How to sort attribute?

2005-08-13 02:11:25
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



--~------------------------------------------------------------------
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>
--~--