Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: node-set($variable) just won't allow any results - what do I need to change?

From: Martin Honnen <mahotrash@-----.-->
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/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent