xsl-list
[Top] [All Lists]

RE: Charsets in Saxon

2004-02-05 03:05:23
I can only make guesses as to why this might happen. My first guess
would be that the serialization was not actually done by Saxon.
Alternatively, you might have used Saxon to serialize to a character
stream, and then have used some other software to convert the characters
to bytes.

In other words, I need to know more about how you invoked the
transformation, and in particular, the serialization phase. What kind of
result object did you specify?

Michael Kay

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Marcus Andersson
Sent: 05 February 2004 08:26
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Charsets in Saxon


I'm having trouble with getting the encodings correct. I have

<?xml version="1.0" encoding="ISO-8859-1"?>

in both the source xml file and in the stylesheet and also

<xsl:output method="xml" indent="yes" encoding="ISO-8859-1"/>

in the stylesheet. The XML declaration in the resulting document is:

<?xml version="1.0" encoding="UTF-8"?>

Why is it so and what can I do to fix it (since I want 
ISO-8859-1 in the 
result)? The characters in the document looks good though (as if the 
actual encoding was ISO-8859-1)

The Saxon I use is the latest 7.x (8?) from Sourceforge.

/Marcus


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



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



<Prev in Thread] Current Thread [Next in Thread>