Subject: RE: [xsl] Sum & Sort & Maxvalue From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx> Date: Sat, 6 Mar 2004 22:17:53 +0100 |
> -----Original Message----- > From: Andreas L. Delmelle > > > -----Original Message----- > > From: Florian Mueller > > > > I have a complex problem. I dont know if i can explain it correctly. > > <snip /> > > I have been trying this with a sort on the hits-node, but it > didn't seem to be working. Hi, Had another look at it. Given the part of the solution I already provided: <xsl:template match="day"> ... <xsl:apply-templates select="ext:node-set($vacts)/*"> <xsl:sort select="hits" data-type="number" order="descending" /> </xsl:apply-templates> </xsl:template> <xsl:template match="activity[hits > 0]"> <xsl:value-of select="@name" /> <b><xsl:value-of select="hits" /></b> </xsl:template> will get your output in the desired order. Cheers, Andreas XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Sum & Sort & Maxvalue, Andreas L. Delmelle | Thread | [xsl] Output of a FLowchart from XM, Sam Byland |
RE: [xsl] What is the best XSLT boo, Colin Toal | Date | Re: [xsl] What is the best XSLT boo, Kaarle Kaila |
Month |