Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Edward Dudley 80 posts 121 karma points
    Feb 15, 2010 @ 10:31
    Edward Dudley
    0

    List child nodes alphabetically

    Any easy way to do this in XSLT?

    Listing child nodes is easy, but what about sorting them alphabetically?

    Thanks

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 15, 2010 @ 10:37
    Peter Dijksterhuis
    2

    Hi,

    you can sort in XSLT. For example:

    <xsl:for-each ....>
    <xsl:sort select="@nodeName" order="ascending"/>
    </xsl:for-each>

    HTH,

    Peter

  • Edward Dudley 80 posts 121 karma points
    Feb 15, 2010 @ 10:42
    Edward Dudley
    0

    Perfect, thanks!

Please Sign in or register to post replies

Write your reply to:

Draft