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

Re: distinct-values() optimization, sorting by frequen

Subject: Re: distinct-values() optimization, sorting by frequency
From: "James Cummings" <cummings.james@xxxxxxxxx>
Date: Fri, 8 Feb 2008 14:40:23 +0000
 Re: distinct-values() optimization
On Feb 8, 2008 2:27 PM, James Cummings <cummings.james@xxxxxxxxx> wrote:
> <!-- A Frequency Sorted List  -->
> <div>
>   <head>Frequency List</head>
>   <list type="unordered">
>     <xsl:for-each select="$distinct-persNames">
>       <xsl:sort select="count($persNames[normalize-space(lower-case(.))
>         = .])"/>
> <!-- I think it is this sort statement which slows things down, since
> I have to repeat it twice. -->
>       <xsl:variable name="current-name" select="."/>
>       <xsl:variable name="count-distinct-current-name"
>         select="count($persNames[normalize-space(lower-case(.))
>         = $current-name])"/>
>       <item><xsl:value-of select="concat($count-distinct-current-name,
>           '  --  ', $current-name)"/> </item>
>     </xsl:for-each>

Actually I don't think that <xsl:sort> is doing what I want at all! :-(

Any suggestions appreciated,


Current Thread


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.
First Name
Last Name
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.