<xsl:when test="key('word-group-by-word',substring($word,1,
$length-of-word - 2))"> <<<<<<<<<<<<<<<<<<
<xsl:sequence select="substring($word,1,
key() with 2 arguments looks things up in the current document which
means it needs to know what the current node is. If you haven't got a
current node (which you haven't initially in the body of xsl:function) then...
You could do the xsl 1 thing and
<xsl:for-each
select="$a-variable-holding-any-node-in-the-document-to-be-searched">
to get yourself back in sysnc, or in xslt2 you can go
when
test="select="$a-variable-holding-any-node-in-the-document-to-be-searched/key(....
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--~------------------------------------------------------------------
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>
--~--