This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Another website.dtd experience! boundary
- To: Ali Saffari <asaffari at pironet dot com>
- Subject: Re: DOCBOOK-APPS: Another website.dtd experience! boundary
- From: Jirka Kosek <jirka at kosek dot cz>
- Date: Tue, 14 Nov 2000 13:41:25 +0000
- Cc: docbook-apps at lists dot oasis-open dot org
- Reply-to: jirka at kosek dot cz
On 13 Nov 00 at 15:37, Ali Saffari wrote:
Hi,
> I think these changes will go into future releases of the
> stylesheets. As far as I understood this the output method
> has allready been set to 'text'. I've played with this option
> a little bit and found something strange:
>
> It's completely ignored (at least on my system ;-). It doesn't
> matter if you set it to 'html', 'text' or 'xml' you alway get
> the same toc.hhc!!!! I did a little hack and added to every
> <xsl:text>-Tag for the hhc-Templates the attribute
> disable-output-escaping="yes" (file: htmlhelp.xsl).
> This seems to solve the problem for my case. But I fear this is
> not the right way ;-) For more detailed review I've attached
> the original message and the patch from Norm to this message.
I looked at the patches, and they are calling template write.chunk in
html/chunk-common. This template has hardwired HTML output method:
<xsl:template name="write.chunk">
<xsl:param name="filename" select="''"/>
<xsl:param name="content" select="''"/>
<xalanredirect:write file="{$filename}">
<xsl:copy-of select="$content"/>
<xsl:fallback>
<saxon:output method="html" file="{$filename}"
encoding="ISO-8859-1">
<xsl:copy-of select="$content"/>
<xsl:fallback>
<xsl:copy-of select="$content"/>
</xsl:fallback>
</saxon:output>
</xsl:fallback>
</xalanredirect:write>
</xsl:template>
Changing it to something like
<xsl:template name="write.chunk">
<xsl:param name="filename" select="''"/>
<xsl:param name="content" select="''"/>
<xsl:param name="method" select="'html'"/>
<xalanredirect:write file="{$filename}">
<xsl:copy-of select="$content"/>
<xsl:fallback>
<saxon:output method="{$method}" file="{$filename}"
encoding="ISO-8859-1">
<xsl:copy-of select="$content"/>
<xsl:fallback>
<xsl:copy-of select="$content"/>
</xsl:fallback>
</saxon:output>
</xsl:fallback>
</xalanredirect:write>
</xsl:template>
should help. I think that Norm already recognized this
unpleasant feature, and he will fix it in future release.
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz