Subject: Re: [xsl] Cannot select a node here: the context item is undefined From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 5 Apr 2005 23:01:00 +0100 |
>>>>> <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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Cannot select a node here: , Jim_Albright | Thread | RE: [xsl] Cannot select a node he, Michael Kay |
Re: [xsl] xsl formating string, Jon Gorman | Date | RE: [xsl] Cannot select a node he, Michael Kay |
Month |