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!


Jirka Kosek wrote:
> Change following line in contrib/htmlhelp/docbook.xsl
> 
>  <saxon:output method="html" file="toc.hhc">
> 
> to
> 
>  <saxon:output method="text" file="toc.hcc">
> 

Hi Again!

I think Norm changed some things recently. The templates
look like this now:

<xsl:template name="hhc">
  <xsl:call-template name="write.text.chunk">
    <xsl:with-param name="filename" select="'toc.hhc'"/>
    <xsl:with-param name="method" select="'text'"/>
    <xsl:with-param name="content">
      <xsl:call-template name="hhc-main"/>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>

<xsl:template name="hhc-main">
    <xsl:text>&lt;HTML&gt;
&lt;HEAD&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;OBJECT type="text/site properties"&gt;
	&lt;param name="ImageType" value="Folder"&gt;
&lt;/OBJECT&gt;
&lt;UL&gt;
...
</xsl:template>

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.

-------- Original Message --------
/ Ali Saffari <asaffari@pironet.com> was heard to say:
| Could you please be so kind and send me the fixed files
| via email? We are using this stylesheets for our daily

Here they are, these files go in contrib/htmlhelp. Delete docbook.xsl
from that directory, it's no longer used. And note that you have to
call xtchunk.xsl for xt and chunk.xsl for Saxon. Xalan can not be made
to work because it lacks the ability to write text files with
redirect:write.


Ciao,

Ali Saffari.
-- 
-----------------------------------------------------------------------
PIRONET NDH
Dipl.-Ing. Ali Saffari - Junior Consultant - SBU Software
Josef-Lammerting-Allee 14-18 - 50933 Cologne - Germany
Tel.: +49 (0)221 770-1853 - Fax: +49 (0)221 770-1005
mailto:asaffari@pironet.com - http://www.pironet.com
-----------------------------------------------------------------------

patch.zip



                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Where it is permissible both to die and
http://nwalsh.com/            | not to die, it is an abuse of valour to
                              | die.--Mencius



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


Powered by eList eXpress LLC