Re: [xsl] Attribute-based XML Sorting using XSL

Subject: Re: [xsl] Attribute-based XML Sorting using XSL
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 18 Jun 2002 01:23:30 +0200
<xsl:apply-templates select="ROW">
    <xsl:sort select="COLUMN[@value]"/>
</xsl:apply-templates>

Hi Matt,


instead of the above write

<xsl:apply-templates select="ROW">
    <xsl:sort select="COLUMN[@name = $sort-col]"/>
</xsl:apply-templates>

where $sort-col stores the col-name to sort by.

Regards,

Joerg


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



Current Thread