This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Attribute-based XML Sorting using XSL


<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]