I have been working with the XML libraries, but I am getting an XML parser error. I used XML Spy to validate the XML and test it with the stylesheet. All works well.
The only difference is that the XML that I generate is not pretty. XML Spy adds the tabs for me. I don't know if that makes a difference.
Also, I am using a file for the xsl, but the XML is a string that is generated dynamically.
$myXMLStuff.="<field>whatever</field>\n";
Again, I don't know if that matters, but I saw in another post that the formating for the XML may make a difference. This is basically how I am doing it.
$xsl="http://www.mywebsite/mystylesheet.xsl";
$xml=$myXMLStuff;
$arguments = array('/_xml' => $xml);
$xslt=xslt_create();
echo "<br>TEST 1 - xslt_create() works";
$results=xslt_process($xslt,'arg:/_xml',$xsl,NULL,$arguments);
echo "<br>TEST 2 - xslt_process() works";
if(!$results){
echo "There was an error - ".xslt_error($xslt);
}else{
echo "<br>TEST 3 - results<br>$results";
}
xslt_free($xslt);
Any help would be appreciated. I see that this is a very common issue on the forums, so if anyone could direct me (and others) to a list of things to look for, that would be great.