This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: troubles after changed encoding in XSL 1.58
Daniel Veillard <veillard@redhat.com>:
> So is the "problem" fixed ? Reading the thread I can't tell if there
> was a bug to be reported or if it was "just" a configuration problem.
When I use (XSL 1.58 + xsltproc):
<xsl:import href="/usr/local/share/xsl/xhtml/docbook.xsl"/>
together with
<xsl:param name="chunker.output.encoding">ISO-8859-1</xsl:param>
or
<xsl:param name="default.encoding">ISO-8859-1</xsl:param>
it always produce:
<?xml version="1.0" encoding="UTF-8"?>
.
When I use (XSL 1.58 + xsltproc):
<xsl:import href="/usr/local/share/xsl/xhtml/chunk.xsl"/>
it always produce:
<?xml version="1.0" encoding="ISO-8859-1"?>
.
When I use (XSL 1.58 + xsltproc):
<xsl:import href="/usr/local/share/xsl/xhtml/chunk.xsl"/>
together with
<xsl:param name="chunker.output.encoding">UTF-8</xsl:param>
it always produce:
<?xml version="1.0" encoding="UTF-8"?>
.
When I use in 1.58
<xsl:import href="/usr/local/share/xsl/html/docbook.xsl"/>
it produces international chars as in 1.57:
<xsl:import href="/usr/local/share/xsl/xhtml/docbook.xsl"/>
(I don't specify any encoding).
So looks like UTF-8 is always set only when docbook.xsl is choosed. In case of
chunk.xsl everything works fine. I would like to set encoding for docbook.xsl
template.
I don't know much about XSL but I found in chunker.xsl that encoding is taken
from $encoding which is taken from $chunker.output.encoding. But I can't find
equivalent in docbook.xsl.
ABX