xsl-list
[Top] [All Lists]

Re: [xsl] How to sort a nodeset returned by key()?

2008-04-08 15:29:22


Here is the missing code :

ah, which is more or less the same as I came up with, modulo a few
variables,

The xslt2 solution, using xsl:for-each-group, would be essentially
identical to this just doing a straight translation of

<xsl:for-each select="salesman/account[count( . |...

to xsl:for-each-grouo, and

            <xsl:for-each select="key('accounts-by-region', $region)">

to 

<xsl:for-each select="current-group()"

so it's a fair bit more readable but structurally identical.

David


--~------------------------------------------------------------------
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>
--~--