Subject: Re: [xsl] sort elements based on attribute value From: Rick Taylor <taylor@xxxxxxxx> Date: Thu, 27 Mar 2003 16:09:35 -0700 |
<xsl:template match="/"> <root> <xsl:apply-templates select="//elem"> <xsl:sort data-type="number" select="@value"/> </xsl:apply-templates> </root> </xsl:template>
<!-- process elem's --> <xsl:template match="elem"> <newelem value="{@value}"> </newelem> </xsl:template>
Hi Gurus
how can i sort a list of elements based on the an ascending value of an attribute
<elem value=3>
</elem>
<elem value=2>
</elem>
i need to sort the elements basd on attribute
gracias
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Rick Taylor XML Developer PPDM Association
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] sort elements based on at, Mac Martine | Thread | [xsl] SELECT DISTINCT VALUES, test s |
RE: [xsl] sort elements based on at, Mac Martine | Date | [xsl] Cascading Menu (with Open/Cl, Brian K Bonner |
Month |