RE: [xsl] No Context Item Available Error in XMLSpy

Subject: RE: [xsl] No Context Item Available Error in XMLSpy
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 18 Oct 2005 12:20:32 +0100
Looks like one that should be reported to Altova.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: UlyLee [mailto:ulyleeka@xxxxxxxxx] 
> Sent: 18 October 2005 10:00
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] No Context Item Available Error in XMLSpy
> 
> Hi!
> 
> I'm using XMLSpy and i'm trying to debug my xsl that
> has this function:
> 
> <xsl:function name="f:replace-all">
> <xsl:param name="input" as="xs:string*"/>
> <xsl:param name="words-to-replace" as="xs:string*"/>
> <xsl:param name="replacement" as="xs:string*"/>
> <xsl:sequence select="if (exists($words-to-replace))
> then f:replace-all(replace($input,
> $words-to-replace[1],
> $replacement[1]),remove($words-to-replace,1),remove($replacement,1))
> else $input"/>
> </xsl:function>
> 
> as soon as the cursor moves to the 1st xsl:param
> element, i get a No Context Item Available Error in
> the debug message. However when i'm transforming it
> and not debugging it, there are no error message
> returned. Same goes when i'm using saxon
> 
> thanks,
> UlyLee
> 
> 
> 		
> __________________________________ 
> Yahoo! Music Unlimited 
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/

Current Thread