Re: [xsl] xalan encoding issues?

Subject: Re: [xsl] xalan encoding issues?
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 04 Oct 2002 13:46:59 +0200
Hello Laura,

I'm not an encoding specialist, but I can answer some of your questions.

Laura Jenkins wrote:

Can anyone tell me if there are any specific rules about the character encoding.
following are my questions.
1.Does Xalan allow all kinds of character encoding or just some specific encodings ?

I don't know exactly, but there was a thread on the Cocoon mailing list about Xerces (which is the parser, not Xalan) and Mac encoding. AFAIK they got it and Xerces excepts all JVM encodings.

2.If the encoding is not specified in the xml file, what does xalan assume as a default encoding?

Xerces expects UTF-8 as default.

3.If i do not specify the encoding in my xml file, and if the xml has for example arabic or polish characters,would it still open in my IE?(what would IE assume the default Character coding )

If the content of the file is correct to the encoding declaration (even if it's the default UTF-8) then yes.

4. If the XML file is has an encoding iso-8859-1 and if the xml is a valid xml, what is the effect of
1. Having an xml declaration with encoding in the xsl??

It has no effect on the input XML, it's only the encoding of the XSL file, which is also XML.

2. Having an xsl:output with encoding specified?

The output of the transformation will be in the specified encoding. Has again nothing to do with input.

Thank you very much

No problem. Regards,



System Development
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409

VIRBUS hat jetzt als erster deutscher Softwarehersteller die Zertifizierung für den 3D Secure-Authentifizierungsstandard "Verified by Visa" erhalten. Details unter

XSL-List info and archive:

Current Thread