This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XML String as Parameter..
- From: "Hunsberger, Peter" <Peter dot Hunsberger at stjude dot org>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 1 Apr 2002 08:44:34 -0600
- Subject: RE: [xsl] XML String as Parameter..
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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