This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: non-english XSL DocBook Stylesheet problems
- To: patrickd at cri-inc dot qc dot ca
- Subject: Re: DOCBOOK-APPS: non-english XSL DocBook Stylesheet problems
- From: Jirka Kosek <jirka at kosek dot cz>
- Date: Thu, 22 Mar 2001 21:52:40 +0100
- Cc: docbook-apps at lists dot oasis-open dot org
- References: <KHEEJHGOJJBNMNMFACBKMEGHCCAA.patrickd@cri-inc.qc.ca>
Patrickd wrote:
> I'm currently using the XSL DocBook Stylesheets to create
> HTML documentation.
>
> Everything works fine in english. The problem is when I
> try to generate my french documentation. Accentuated
> caracters (é, è, à, ...) does'nt appears correctly
> in .html generated files.
>
> Here a generated .html sample :
>
> Chapitre 1. Créer
> Précédent   Suivant
They are correct, but encoded in by UTF-8 encoding. It is strange,
because HTML stylesheet by default uses iso-8859-1 (ISO Latin 1)
encoding. Aren't you using XHTML version of stylesheet (stored in file
xhtml/docbook.xsl). When generating XHTML, XSLT processor emits XML and
XT in that case always uses UTF-8. This can be overcomed by using
html/docbook.xsl stylesheet.
> Future release (e.g. 1.34) generate me some special error (on win32 using
> XT)
>
> java.io.UnsupportedEncodingException: {$encoding}
> [Could not load class: sun.io.CharToByte{$encoding}]
>
> Anyone experiencing this kind of problems.
XT does not support AVT in encoding specification. You should switch to
some better XSLT processor - e.g. Saxon.
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org