xsl-list
[Top] [All Lists]

Re: Converting <xml> StyleSheet param contents into a node set?

2005-08-16 23:18:11
Looks like this works (since I'm pigeon holed using xalan)..
...
<xsl:variable name="rtf">
   <xsl:value-of select="$Filter" disable-output-escaping="yes"/>
</xsl:variable>

<xsl:copy-of select="xalan:nodeset($rtf)" />
...

Is there a better way to do this than with xalan:nodeset() or any
equivalent node-set()/nodeset() entension function?

--
On 8/16/05, Jacquo Johnson <genxgeek(_at_)gmail(_dot_)com> wrote:
HI all, can somebody tell me how I can pass <xml> contents into a
stylesheet param and then convert that <xml> contents into a nodeset?


Stylesheet: ( Filter=<Node><Whatever/></Node> )
...
<xsl:param name="Filter" select="string('NULL')" />

   <xsl:copy-of select="$Filter"/>
...
Output:
   &lt;Node&gt;&lt;Whatever/&gt;&lt;/Node&gt;

However, I want to turn the xml contents above into a node set that I
can later use in the transform.  Is that possible (is there something
other than using CDATA)?

Any information would be greatly appreciated.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--