Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help using <xsl:sort/>

Status
Not open for further replies.

aspdotnetuser

Programmer
Oct 10, 2008
45
GB
Hi,

I'm new to using xml and xslt. I'm trying to use xsl:sort to display the @periodname_1 attribute in ascending order but it doesn't work. Can anyone see why?

[red]<xsl:sort select="@periodname_1" order="ascending"/>[/red]

[blue]<td colspan="2">

<xsl:value-of select="@periodname_1"></xsl:value-of>

</td>
</xsl:for-each>[/blue]
 
I fixed this by changing the xsl sort to use order and data-type.

[red]<xsl:sort select="@periodname_1" order="ascending" data-type="text"/>[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top