This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Attribute-based XML Sorting using XSL
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 18 Jun 2002 01:23:30 +0200
- Subject: Re: [xsl] Attribute-based XML Sorting using XSL
- References: <3D0E3B5B.3020909@mattjones.org>
- Reply-to: xsl-list at lists dot mulberrytech dot com
<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