On Feb 8, 2008 2:27 PM, James Cummings
<cummings(_dot_)james(_at_)gmail(_dot_)com> 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,
-James
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--