Re: [xsl] sorting

Subject: Re: [xsl] 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