Re: [xsl] Xalan Encoding Problems

Subject: Re: [xsl] Xalan Encoding Problems
From: "Raul Rodriguez" <raulnyc@xxxxxxxxxxx>
Date: Tue, 30 Oct 2001 14:15:44 -0500
David:

You were correct. The problem does seem to lie with the version of Xerces that comes with Xalan_j_2_2_D11. I also downloaded the latest version of the Xerces jar file and it worked. I then used a copy (dated 5/18/2001) that came with my Visual Age for Java distribution and it worked fine. If this has not been reported as a bug, I will register as such.

Thanks

Raul


From: David_N_Bertoni@xxxxxxxxx
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Xalan Encoding Problems
Date: Tue, 30 Oct 2001 11:10:55 -0500


Hi Raul,


> First of all I want to thank the community with their response to my
> question.  Unfortunately, I still have the same problem.
>
> Jorg:
>
> I copied your sample code and placed them in new XML and XSL files.  I
ran
> the latest version of Xalan and got the following result
>
> xalan -in test.xml -xsl test.xsl -out test.out
>
> SystemId Unknown; Line 0; Column 0; XSLT Error
> (javax.xml.transform.TransformerE
> xception): org.xml.sax.SAXParseException: The encoding "iso-8859-1" is
not
> supported.

This is actually an exception from the Xerces parser, not from Xalan
itself.  It seems strange that Xerces would be complaining about that
encoding, as it has supported it for quite a while.

You should check your classpath to make sure you don't have an old version
of the Xerces parser lurking about.  I believe there is a utility packaged
with Xalan that checks your environment for such things.

Also, just for fun, try using upper-case letters in the encoding, i.e.:

encoding ="ISO-8859-1"

You shouldn't have to do it, but it's worth a try.

> No output file was created.  I also checked the open bugs list of Xalan
and
> came across the following bug which I am not sure is related
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1639

Nope, this is totally unrelated -- it's a bug about writing numeric
character references in serialized output.

Lastly, this conversation is really more appropriate on one of the Xalan
lists hosted on Apache.  Please post your question there, and I'm sure
someone will be happy to help out.

Dave


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread