[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XML String as Parameter..


Subject: RE: [xsl] XML String as Parameter..
From: "Hunsberger, Peter" <Peter.Hunsberger@xxxxxxxxxx>
Date: Mon, 1 Apr 2002 08:44:34 -0600

> The i tried to load the Parameter to a variable using
> document() function. 
> <xsl:variable name="xmlvar"
>  select="document(xalan:node-set($xmlparm))">
> </xsl:variable>
>
> Now it throws Error "For extension function, could not
> find method
>  java.lang.String.node-set([ExpressionContext,] ).

Why are you trying to convert a string to a nodeset?  If it's just a string
use it directly. If the string contains XML that you want to have parsed you
need pass it in as a nodeset in the first place.  That's a little harder,
but there have been several discussions on how to do this lately.  In
particular, for Xalan see:

	http://www.biglist.com/lists/xsl-list/archives/200203/msg01059.html



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xml