[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><HTML> <HEAD> </HEAD> <BODY> <OBJECT type="text/site properties"> <param name="ImageType" value="Folder"> </OBJECT> <UL> ... </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 -----------------------------------------------------------------------
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