|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Multi-level sorting.
Hi,
> I have 3 separate nodes (topnav, bottomnav, & staticnav)
> within my root
> node. When all is said and done I want the information to be
> displayed in
> alphabetical order. I want it sorted by the "name" attribute
> regardless of
> the level of the node in the tree. The desirable output would look
> something like this:
>
> aaa
> bbb
> ccc
> ddd
> eee
> fff
> ...
> ...
> www
>
> Any help would be appreciated. My email is
<xsl:output method="text"/>
<xsl:template match="root">
<xsl:for-each select="descendant::*/@name">
<xsl:sort select="."/>
<xsl:value-of select="."/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
Cheers,
Jarno - Hocico: Final Resource
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








