title: php - context node in xpath problem
body: <p>have this code:</p>
  
  <pre><code>$products   =   $feed-&gt;_xpath-&gt;query( "//cf:vehicle"  );
  
  foreach( $products as $product )
  {
      echo $product-&gt;nodeName . ': ' . $product-&gt;getAttribute('code') . '&lt;br /&gt;';
      $imgs   =   $feed-&gt;_xpath-&gt;query( "//cf:image" , $product );
      echo '&amp;nbsp;Imgs: ' . $imgs-&gt;length . '&lt;br /&gt;';
  }
  </code></pre>
  
  <p>the number of product nodes found in the xmlfeed is 103 - that is correct.</p>
  
  <p>the query to locat images within that node however is NOT doing so within the current node context - it finds 116 image nodes which is the total number of image nodes within the feed where as it should only select the images within the current product (between 0 and 3 in most cases)</p>
  
  <p>Any pointers muchly appreciated.</p>