OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: Another website.dtd experience! boundary


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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC