xsl-list
[Top] [All Lists]

Re: Sorting XML Elements alphabetically

2004-02-13 05:50:25
Peter,

...
I would like to produce XML output from this source where the elements are
sorted alphabetically at each level, i.e.
...
Is there an XSL transformation that can help me achieve this?  I
experimented with different ways of using <xsl:sort> but so far, I seem to
have been only sorting data rather than the elements themselves.  Any help
would be appreciated.  Thanks.

Have you tried also: <xsl:sort select="name()"/> ?

Best Regards,
 George
-------------------------------------------------------------
George Cristian Bina mailto:george(_at_)oxygenxml(_dot_)com
<oXygen/> XML Editor - http://www.oxygenxml.com/




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>