|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Cannot select a node here: the context item is
>>>>> <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
________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








