Tempore 18:51:57, die 02/02/2005 AD, hinc in
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Anton Damhuis
<ADamhuis(_at_)absamail(_dot_)co(_dot_)za>:
<xsl:for-each select="data/values/cols[count(. |
key('totalByGroup',sort)[1]) = 1]">
<xsl:sort select="cols/sort" />
<xsl:for-each select="col">
Error here=
<xsl:value-of select="sum(key('totalByGroup',sort)/col[($n)])" />!
</xsl:for-each>
</xsl:for-each>
Hi,
The current node-set contains no 'sort' children, so you can't use their
values to use as a key.
write something like this:
<xsl:value-of select="sum(key('totalByGroup',../sort)/col[($n)])" />
regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
Vincit omnia simplicitas
Keep it simple
--~------------------------------------------------------------------
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>
--~--