|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How do you convert a string to a node-set?
Steve Renshaw wrote:
> 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('<a>3</a><b>4</b>')"/>
Markup in an XPath/XSLT string object is not really meant to be parsed. How
did you end up with an XML fragment in a string in the first place? Solve that
problem, and this one will go away.
I believe the only other way is to use an extension function or extension
element of your own design. It would need to invoke MSXML to parse the string
as it would an external general entity (since the XML is not a well-formed
document... your example <a>3</a><b>4</b> does not have a document element).
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








