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:

$results = new DOMDocument();
$results->substituteEntities = true;
$stylesheet = new DOMDocument();
$stylesheet->substituteEntities = true;
$xsl = new XSLTProcessor();
$output = $xsl->transformToXML($results);
echo $output; 
//echo $results->saveXML() . "\n";
The data loads fine as you can see if you uncomment the last line.


<?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="/">
  <h2>Zoom Info Results</h2>
  <table border="1">
    <tr bgcolor="#9acd32">
      <th>Company Name</th>
    <xsl:for-each select="CompanySearchRequest//CompanyRecord">
      <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>
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,