xsl-list
[Top] [All Lists]

Re: sorting

2002-10-23 13:40:06
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(_at_)freddiemac(_dot_)com 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



<Prev in Thread] Current Thread [Next in Thread>
  • sorting, shreekumar_veeramani
    • Re: sorting, Joerg Heinicke <=