Hi guys,

I'm new to this XSL, and hoping someone can clear up my confusion.. I'm trying to transform an XML file loaded from an external webpage and apply a local stylesheet to it.

Here's my code:

Code:
<?php
$s="http://api.zoominfo.com/PartnerAPI/XmlOutput.aspx?query_type=company_search_query&pc=75kfprdfbvgnnbxf3a4gtd65&companyDesc=Internet+Search&State=MA";
$results = new DOMDocument();
$results->substituteEntities = true;
$results->load($s);
$stylesheet = new DOMDocument();
$stylesheet->substituteEntities = true;
$stylesheet->load('zoominfo.xsl');
$xsl = new XSLTProcessor();
$xsl->importStyleSheet($stylesheet);
$output = $xsl->transformToXML($results);
echo $output; 
//echo $results->saveXML() . "\n";
?>
The data loads fine as you can see if you uncomment the last line.

zoominfo.xsl:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
  <html>
  <body>
  <h2>Zoom Info Results</h2>
  <table border="1">
    <tr bgcolor="#9acd32">
      <th>Company Name</th>
      <th>Website</th>
	  <th>City</th>
	  <th>State</th>
    </tr>
    <xsl:for-each select="CompanySearchRequest//CompanyRecord">
    <tr>
      <td><xsl:value-of select="CompanyName"/></td>
      <td><xsl:value-of select="Website"/></td>
	  <td><xsl:value-of select="City"/></td>
	  <td><xsl:value-of select="State"/></td>
    </tr>
    </xsl:for-each>
  </table>
  </body>
  </html>
</xsl:template>
</xsl:transform>
and a link to my phpinfo file http://jobcoachpro.net/phpinfo.php

this is what i get http://jobcoachpro.net/xsltest.php

Is there a problem with the way the server is configured or is it just my code?

Many thanks in advance,
j