I think you're missing something. Here are my questions:
1. How are you invoking XalanJ? Are you using the command line? If
not using the command line, are you supplying a StreamResult object
based on a Writer instead of a Stream?
2. What does your stylesheet look like? Have you specified the
encoding attribute of the xsl:output element?
Gary
[EMAIL PROTECTED] wrote:
>
> Hi,
>
> I am currently switching from Xalan 1 to version 2. I am facing a little
> problem : whatever encoding scheme is specified in the xml source and xsl
> stylsheet, ouptut encoding is always specified as UTF8, although real
> encoding is ok, ie I specifiy ISO-8859-1 encoding and I get this, but the
> first line of output is always :
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> As I am outputing a XSLFO stylesheet it causes FOP to throw an exception as
> it encounters characters that do not fit whit the specified encoding.
>
> Is it a bug, or a feature, or am I missing sommething ? (I did have this
> problem with Xalan 1.)
>
> Regards,
>
> Pierre-Yves