[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Xalan Encoding Problems

Subject: Re: Xalan Encoding Problems
From: "Raul Rodriguez" <raulnyc@xxxxxxxxxxx>
Date: Tue, 30 Oct 2001 10:33:03 -0500
xalan iso 8859 1
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.


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


Hi Raul,

we use Xalan in complete production-process. Because of umlauts in German
language äöü or the letter ß we often use ISO-8859-1 and we never had any
problems. I can only assume that the file, which you want to transform,
isn't correctly encoded. Because of your mail I tested the following:

XML

<?xml version="1.0" encoding="iso-8859-1"?>
<test>äö©ü©</test>

XSL

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="test">
        <xsl:value-of select="text()"/>
    </xsl:template>
</xsl:stylesheet>

Output

<?xml version="1.0" encoding="UTF-8"?>
äö©ü©

You can try it yourself. It will work! It's not a Xalan problem.

Joerg



> Hi:
>
> I downloaded the latest version of Xalan and tried to use it to process a
> barcode generator stylesheet that I downloaded from RenderX. Xalan dies
> immediately because the it cannot read the encoding which is set to
> ISO-8859-1. In addition, the author placed the copyright symbol which is
> not part of the ASCII set and Xalan also dies on this. Saxon and XT do
not
> have this problem and are able to render the barcode.
>
> Is there anything I can do to fix this? The barcodes need this encoding
> otherwise it cannot product the veritical lines.
>
> Thanks
>
> Raul



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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.