title: msxsl:node-set() not recognized
body: <p>I am trying to pull nodes out of a node set stored in a variable using the msxsl:node-set() function and am not getting anything.  My xml looks like this:</p>
  
  <pre><code>&lt;Root&gt;
    &lt;Items olditemnumber="100" newitemnumber="200"&gt;
      &lt;Item ItemNumber="100" ItemAliasCode="1001" ItemCode="X" /&gt;
      &lt;Item ItemNumber="100" ItemAliasCode="1002" ItemCode="X" /&gt;
      &lt;Item ItemNumber="200" ItemAliasCode="2001" ItemCode="X" /&gt;
      &lt;Item ItemNumber="200" ItemAliasCode="2003" ItemCode="X" /&gt;
      &lt;Item ItemNumber="100" ItemAliasCode="1003" ItemCode="P" /&gt;
      &lt;Item ItemNumber="100" ItemAliasCode="1004" ItemCode="P" /&gt;
      &lt;Item ItemNumber="200" ItemAliasCode="2002" ItemCode="P" /&gt;
    &lt;/Items&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>In my xslt I try to populate a variable with a subset of the  nodes and then call them using the msxsl:node-set() function.  This doesn't return anything however.
  XSLT looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                xmlns:msxsl="urn:schemas-microsoft-com:xslt"&gt;
   &lt;xsl:template match="//Root"&gt;
     &lt;xsl:variable name="OldItemNumber" select="/Items/@olditemnumber"/&gt;
     &lt;xsl:variable name="NewItemNumber" select="/Items/@newitemnumber"/&gt;
     &lt;xsl:variable name="OldItems"&gt;
       &lt;xsl:value-of select="//Item[@ItemNumber = $OldItemNumber]"/&gt;
     &lt;/xsl:variable&gt;
     &lt;xsl:variable name="NewItems"&gt;
       &lt;xsl:value-of select="//Item[@ItemNumber = $NewItemNumber]"/&gt;
     &lt;/xsl:variable&gt;
     &lt;xsl:for-each select="msxsl:node-set($OldItems)/Item"&gt;
       ...work
     &lt;/xsl:for-each&gt;
   &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>The XSLT skips over the for-each loop, though I see in the watch that the the Xpath query grabs the right nodes in assigning the variables.  The watch also tells me that the msxsl:node-set() function is undefined.  Any help would be appreciated.  What am I missing?</p>