[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: RE: Sum & Sort & Maxvalue

Subject: AW: RE: Sum & Sort & Maxvalue
From: Florian Mueller <jjdm@xxxxxxxx>
Date: Tue, 09 Mar 2004 10:56:00 +0100
AW: RE:  Sum & Sort & Maxvalue
-- Samstag, 6. März 2004 22.20 Uhr CET : "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx> wrote -- 

> > > 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 &gt; 0]">
>   <xsl:value-of select="@name" />
>   <b><xsl:value-of select="hits" /></b>
> </xsl:template>
> 
> 
> will get your output in the desired order.
> 

Hello Andreas

Thank you very much for your answer. Theres only a little Problem left: I dont understand anything. :) Maybe you could send me a File where you put in the complete solution.. I have no idea what i should do.. 

Thanks a lot.

Kindly regards
Flo

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.