Good afternoon friends,
I wonder if someone might be able to help me out? I was feeling rather smug today because I've managed to translate an asp page to php code, and so far I've got it reading from a MySQL database and creating an XML document with the results. Finally I'm trying to get it to transform the XML into HTML using an XSLT stylesheet (I know, I know...I'm a masochist).
I've taken the XML and successfully transformed it using MSXML3, but when I try it in PHP I get the following error:
Warning: Sablotron error on line 1: XML parser error 2: syntax error in c:\apache\apache\htdocs\brochure\php\pages.php on line 99
I know that it's picking up the right file (because I saw a different error message till I got that right), but I'm not sure what's reporting the error here, and where it thinks the error is? Is Sablotron perhaps unable to perform the same transformations as MSXML3, in which case I need to set up a seperate test harness on my PC to see where the errors are being generated?
$arguments = array ( '/_xml' => $desXdoc);
$xh = xslt_create();
$result = xslt_process ($xh, 'arg:/_xml', 'htdocs/Brochure/php/RangePage.xsl', NULL, $arguments );