|
Subject: [xsl] xsl:sort clarification From: Jack Matheson <jack@xxxxxxxxxxxxxx> Date: Mon, 22 Aug 2005 16:47:11 -0500 |
<xsl:template match="doc">
<xsl:variable name="ord" select="'descending'"/>
<out>
Descending order....
<xsl:for-each select="t">
<xsl:sort data-type="number" order="{$ord}"/>
<xsl:value-of select="."/><xsl:text>|</xsl:text>
</xsl:for-each>
</out>
</xsl:template><?xml version="1.0"?> <doc> <t>1</t> <t>007</t> <t>1.0</t> <t>7</t> <t>bogus</t> <t>0.5</t> <t>1.1</t> <t>11</t> </doc>
<?xml version="1.0" encoding="utf-8"?><out>
Descending order....
11|007|7|1.1|1|1.0|0.5|bogus|</out><?xml version="1.0" encoding="UTF-8"?><out>
Descending order....
11|7|007|1.1|1.0|1|0.5|bogus|</out>Thanks again, -Jack
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Problem with Sum function, cknell | Thread | Re: [xsl] xsl:sort clarification, David Carlisle |
| SV: [xsl] MS IXSLProcessor input en, Gabriel K | Date | Re: [xsl] Problem with Sum function, Jon Gorman |
| Month |