Hello all!
How can I receive more detailed error-log? What does this mean:
Error [code:2] [URI:arg:/_stylesheet] [line:1]
XML parser error 4: not well-formed
As I can see, a) error occured in stylesheet in line 1, b) xsl not well-formed. First
line in xsl is <?xml version="1.0" encoding="ISO-8859-5"?>. There was no problems with
this xsl under XML::XSLT.
Script looks like:
$xmlfile = $query->param('xml');
$xmlfile = $ENV{DOCUMENT_ROOT}."/$xmlfile";
$xslfile = $query->param('xsl').".xsl";
$xslfile = $ENV{DOCUMENT_ROOT}."/styles/$xslfile";
$sab = new XML::Sablotron();
$errcode = XML::Sablotron::ProcessStrings($xslfile, $xmlfile, $result);
print "Content-type: text/html\n\n";
print "$result";