expat (and Sablotron) only support directly US-ASCII, UTF-8, UTF-16 and
ISO-8859-1. If you want to use iconv functionality which handles a lot more
encoding conversions on Linux and/or UNIX systems, you need to define
HAVE_ICONV_H when you compile.

-----Original Message-----
From: Mykola A. Nickishov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 3:47 PM
To: Sablotron Mailing List
Subject: RE: [Sab] logging


> -----Original Message-----
> From: Listserv [mailto:[EMAIL PROTECTED]]
> Sent: 6 ������� 2000 �. 17:56
> To: Sablotron Mailing List
> Subject: Re: [Sab] logging
> 
> 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.

see my post, I understand this

> Usually stylesheets look at least like this (anybody correct me if I'm
> wrong):
> 
> <?xml version="1.0"?>

in my case there is <?xml version="1.0" encoding="ISO-8859-5"?>. maybe
problems because encoding attribute?

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

in my xsl <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns="http://www.w3.org/TR/REC-html40">

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