title: Need to extract Sub-Tree of XML, before processing with XSLT Processor
body: <p>I'm processing a XML with XSL with PHP to a HTML output. So far, so good. Here's my code.</p>
  
  <pre><code>&lt;?php
  
  $xslDoc = new DOMDocument();
  $xslDoc-&gt;load("content.xsl");
  
  $xmlDoc = new DOMDocument();
  $xmlDoc-&gt;load("content.xml");
  
      // some xpath/dom-query filtering to get 
      // subtree of loaded xml-file
  
  $proc = new XSLTProcessor();
  $proc-&gt;importStylesheet($xslDoc);
  echo $proc-&gt;transformToXML($xmlDoc);
  
  ?&gt;  
  </code></pre>
  
  <p>Like you can see, this is a simple XSLT Processor. The output works well. For example I have in the given XML three sibling nodes "node":</p>
  
  <pre><code>&lt;root&gt;
   &lt;node&gt;
    &lt;subnode&gt;..&lt;/subnode&gt;
   &lt;/node&gt;
   &lt;node&gt;
    &lt;subnode&gt;..&lt;/subnode&gt;
   &lt;/node&gt;
   &lt;node&gt;
    &lt;subnode&gt;..&lt;/subnode&gt;
   &lt;/node&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Now I want just pass the second node through the XML Processor.</p>
  
  <p>How can I do this?</p>
  
  <p>chris</p>