RE: [xsl] How can I sort this?

Subject: RE: [xsl] How can I sort this?
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Tue, 24 May 2005 13:36:10 +0000
Andrew, use xsl:sort:


<?xml version="1.0" encoding="iso8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="xml" indent="yes"/>


<xsl:template match="/">
<select id="SmallElements">
<xsl:apply-templates select="BigList/BigElement/SmallList/SmallElement">
<xsl:sort select="Name"/>
</xsl:apply-templates>
</select>
</xsl:template>


   <xsl:template match="SmallElement">
       <option value="{Code}">
           <xsl:value-of select="Name"/>
       </option>
   </xsl:template>

</xsl:stylesheet>

Regards,

--A

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar  get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


Current Thread