[xsl] Re: How do you convert a string to a node-set?

Subject: [xsl] Re: How do you convert a string to a node-set?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 26 Mar 2002 00:24:24 -0800 (PST)
> How do you convert a string to a node-set? Is it possible with
MSXSL3?
> This doesn't do the trick:
> <xsl:variable name="var" 
> select="msxsl:node-set('&lt;a&gt;3&lt;/a&gt;&lt;b&gt;4&lt;/b&gt;')"/>

The vendor:node-set() function does something different -- it takes an
RTF and converts it to a node-set.

What you want must be done outside of the transformation -- either
prior to it, or within an extension function. For example, you can use
the loadXML() method for this purpose, then pass (or return back) the
resulting XMLDOM object to the transformation.

Cheers,
Dimitre Novatchev.





__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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


Current Thread