![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: node-set($variable) just won't allow any results - what do I need to change? [Thread Next] Re: node-set($variable) just won't allow any results - what do I need to change?To: NULL Date: 7/7/2007 1:58:00 PM ParanoidMike wrote: > Thank you. And in case there's still room for misunderstanding: if > "$ThreatXPath is not a result tree fragment, it is a string with an > XPath > expression", is there some way I can rewrite my code to turn > $ThreatXPath into an RTF, so the node-set() I thought I was able to > achieve would work? Well a variable bound to a result tree fragment looks like this: <xsl:variable name="example"> <foo> <bar/> </foo> </xsl:variable> As you can see the contents of the xsl:variable element is nodes that form a result tree fragment. Now you could use msxsl:node-set($example) to convert that result tree fragment into a node-set so that you can apply all XPath operations on that node-set. You original attempt seemed to put an XPath expression into the variable and hoped to dynamically evaluate the XPath expression. That is not what msxsl:node-set is good for. And MSXML does not provide another function for that. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
