title: XSLT : Cannot convert the operand to 'Result tree fragment'
body: <p>I work on an xslt stylesheet, and I should receive as parameter two additional XML. I get an error when I use the node-set() method (from namespace ms, microsoft). The contents of the XML is correct. The parameters are send with classic ASP.</p>
  
  <p>Here's the header and the call in xslt:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="1.0"
       xmlns:ms="urn:schemas-microsoft-com:xslt"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  &gt;
  ...
  &lt;xsl:param name="xmlPlanning"&gt;&lt;/xsl:param&gt;
  &lt;xsl:variable name="myXml" select="ms:node-set($xmlPlanning)"&gt;&lt;/xsl:variable&gt;
      &lt;xsl:value-of select="ms:node-set($xmlPlanning)/*"/&gt;
  </code></pre>
  
  <p>Here's the stack trace of the error:</p>
  
  <pre><code>[XsltException: Impossible de convertir l'opérande en 'fragment de l'arborescence résultat'.]
     System.Xml.Xsl.XsltOld.XsltFunctionImpl.ToNavigator(Object argument) +380943
     System.Xml.Xsl.XsltOld.FuncNodeSet.Invoke(XsltContext xsltContext, Object[] args, XPathNavigator docContext) +33
     MS.Internal.Xml.XPath.FunctionQuery.Evaluate(XPathNodeIterator nodeIterator) +292
  
  [XPathException: Échec de la fonction 'ms:node-set()'.]
     MS.Internal.Xml.XPath.FunctionQuery.Evaluate(XPathNodeIterator nodeIterator) +347
     System.Xml.Xsl.XsltOld.Processor.RunQuery(ActionFrame context, Int32 key) +24
     System.Xml.Xsl.XsltOld.VariableAction.Execute(Processor processor, ActionFrame frame) +200
     System.Xml.Xsl.XsltOld.ActionFrame.Execute(Processor processor) +20
     System.Xml.Xsl.XsltOld.Processor.Execute() +82
     System.Xml.Xsl.XsltOld.Processor.Execute(TextWriter writer) +96
     System.Xml.Xsl.XslTransform.Transform(XPathNavigator input, XsltArgumentList args, TextWriter output, XmlResolver resolver) +68
     System.Xml.Xsl.XslTransform.Transform(IXPathNavigable input, XsltArgumentList args, TextWriter output, XmlResolver resolver) +43
     System.Web.UI.WebControls.Xml.Render(HtmlTextWriter output) +132
  </code></pre>
  
  <p>And here's the beginning of the xml I receive in parameter :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ArrayOfGenerationPlanningDesign xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://webservices.secureholiday.net/"&gt;
    &lt;GenerationPlanningDesign&gt;
  </code></pre>
  
  <p>What could be my problem ?</p>