Sort of off topic.

I am recieving XML data via a CFHTTP POST and using Brett Suwyn's <cf_soxml>
tag to process the results with an xsl transformation.

The problem I am running into is when I try to sort a portion of the XML
tree in the DOM.
Here is a piece of the code:

<xsl:for-each select="TrackResponse/Shipment/Package/Activity">
<xsl:sort select="ActivityLocation/Address/City"/>
<tr>
<td id="light">
<span class="text" id="smalltext">
<xsl:value-of select="Time"/>
</span>
</td>
<td id="light">
<span class="text" id="smalltext">
<xsl:value-of select="Date"/>
</span>
</td>
<td id="light">
<span class="text" id="smalltext">
<xsl:value-of select="ActivityLocation/Address/City"/>
<xsl:value-of select="ActivityLocation/Address/StateProvinceCode"/>
<xsl:value-of select="ActivityLocation/Address/CountryCode"/>
</span>
</td>
<td id="light">
<span class="text" id="smalltext">
<xsl:value-of select="Status/StatusType/Description"/>
</span>
</td>
</tr>
</xsl:for-each>

If I process without the sort function, I get the results, but unordered.

Any ideas?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to