I'm trying to transform XML via XSL to HTML using xslt_process(), but I'm getting an error saying the XML or XSL is not well formed, but I don't get any further information than that.
Does anyone do this successfully? It's likely that my headers need to be set up a certain way, but I have no reference for this. If you have some sample XSL and even XML that you can paste here that you know works, I'd be grateful.
FYI, here's the exact error I'm getting:
Here is the code snippet around Line 879:
Here are the current headers in the XSL file:
Here are the current headers in the XML file:
I have no schema set up. This would be a big project. Is it required?
Thanks in advance for any help,
Christopher
Does anyone do this successfully? It's likely that my headers need to be set up a certain way, but I have no reference for this. If you have some sample XSL and even XML that you can paste here that you know works, I'd be grateful.
FYI, here's the exact error I'm getting:
Code:
Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in C:\htdocs\marketing\request_send.php on line 879
Here is the code snippet around Line 879:
Code:
$xslprocessor = xslt_create();
//line 879 follows:
$emailHtml = xslt_process($xslprocessor, 'C:\htdocs\marketing\request_mail.xml', 'C:\htdocs\marketing\request_mail.xsl');
Here are the current headers in the XSL file:
Code:
<xsl:stylesheet xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] version="1.0">
<xsl:output encoding="utf-8" method="html" indent="yes" />
Here are the current headers in the XML file:
Code:
<?xml version="1.0"?>
I have no schema set up. This would be a big project. Is it required?
Thanks in advance for any help,
Christopher