Hi Mykola,

In your error message the line:
    Error [code:2] [URI:arg:/_stylesheet] [line:1]
means that the error is not in your XML file but in your XSL file. Look at
the first line of your stylesheet.

Usually stylesheets look at least like this (anybody correct me if I'm
wrong):

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
...
</xsl:stylesheet>

Have a nice day (or night).
Koscheev Andrey


----- Original Message -----
From: "Mykola A. Nickishov" <[EMAIL PROTECTED]>
To: "Sablotron Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 06, 2000 10:18 AM
Subject: [Sab] logging


> 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";
>

Reply via email to