[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: sorting
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 23 Oct 2002 22:40:06 +0200
Was this question not already answered today?

<xsl:template match="/*">
  <xsl:for-each select="*">
    <xsl:sort select="name()"/>
    <xsl:value-of select="name()"/>&#10;<xsl:text/>
    <xsl:for-each select="@*">
      <xsl:sort select="name()"/>
      <xsl:text/> - <xsl:value-of select="name()"/>&#10;<xsl:text/>
    </xsl:for-each>
  </xsl:for-each>
</xsl:template>

Regards,

Joerg

shreekumar_veeramani@xxxxxxxxxxxxxx wrote:
Hi,

How do i sort on elements and within elements i have to sort on attributes.

Shree


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


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member