|
Subject: [xsl] xsl:sort now working under unix From: Sylvia Murphy <murphys@xxxxxxxx> Date: Wed, 22 Dec 2004 10:27:34 -0700 |
********************************************************* TEST of SORT
here is the stylesheet with the corrected field to field type: <?xml version="1.0"?>
<xsl:template match="/"> <html> <head></head> <body> <h1> TEST of SORT</h1> <p>should be listed in descending order by age (oldest to youngest)</p>
<xsl:for-each select="addressbook">
<!--descending or ascending (default) -->
<xsl:sort select="age" data-type="number" order="descending"/>
<xsl:apply-templates/>
</xsl:for-each>
</body>
</html><xsl:template match="address"> <p> <xsl:value-of select="age"/> <xsl:text> </xsl:text> <xsl:value-of select="name"/> <xsl:value-of select="$newline"/> </p> </xsl:template>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] comparing two nodes, Danny Gallagher | Thread | Re: [xsl] xsl:sort now working unde, Anton Triest |
| RE: [xsl] Calculating Sum in XSLT 1, Michael Kay | Date | RE: [xsl] Microsoft .net and XSLT 2, Pieter Reint Siegers |
| Month |