My transformation fails, yet when the "else" clause is executed, no error messages are actually returned
$xsl = new DOMDocument(); $xslt2 = new XML_XSLT2Processor('SAXON', 'file:////R1/xslt/saxon9-ant.jar', 'JAVA-CLI'); $xsl->load("./entryAsColumn.xsl"); $xslt2->importStyleSheet($xsl);
$xml = new DOMDocument(); $xml->loadXML($r);
if (($output = $xslt2->transformToXML($xml))) { echo "aaa $output bbb"; } else { echo "error: "; print_r(XML_XSLT2Processor::getErrors()); }
Ah, I see, I was using the wrong saxon jar. Now it's fine. Thanks.
Log in to post a comment.
My transformation fails, yet when the "else" clause is executed, no error messages are actually returned
$xsl = new DOMDocument();
$xslt2 = new XML_XSLT2Processor('SAXON', 'file:////R1/xslt/saxon9-ant.jar', 'JAVA-CLI');
$xsl->load("./entryAsColumn.xsl");
$xslt2->importStyleSheet($xsl);
$xml = new DOMDocument();
$xml->loadXML($r);
if (($output = $xslt2->transformToXML($xml)))
{
echo "aaa $output bbb";
}
else
{
echo "error: ";
print_r(XML_XSLT2Processor::getErrors());
}
Ah, I see, I was using the wrong saxon jar. Now it's fine.
Thanks.