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: DOCBOOK-APPS: Removing 'Chapter' from HTML Help pages?

Jirka or others who work with the HTML Help stylesheets,

Is there a way to remove "Chapter." from the headings of HTML files
generated from the HTML Help stylesheets?

I am using the latest xsltproc and the 1.44 XSL stylesheets.  I have a
customization layer that I use to tweak various settings.

I have a DocBook XML document broken out into various <chapter> elements.
When I generate regular HTML pages for our online version, I *want*
chapter and section numbering and labels.  Ditto for PDF.  All of that
works perfectly fine.  TOCs look okay.  It all works.

For the HTML Help version, I do *not* want to have either TOCs or 
chapter/section numbering.  In my customization layer, I have set the
appropriate parameters and I do NOT have any numbering or TOCs... but..
at the beginning of each <chapter> I get text along the lines of:

  Chapter . The role of the SME Server V5

I just want this to be:

  The role of the SME Server V5

Is there anything I can set in my customization layer to get rid of
the "Chapter ."?   I have figured out that the text comes from the
<l:context name="title"> bit inside of common/en.xml...  but I cannot
seem to figure out where this gets called.

Is there some parameter I have not set?  Or is this a stylesheet bug?


P.S. Here is what I have set in my HTML customization layer that is
called when I generate HTML Help:

<!-- Import Jirka Kosek's base HTML Help stylesheet -->
<xsl:import href="/usr/share/sgml/docbook/docbook-xsl-1.44/htmlhelp/htmlhelp.xsl"/>

<!-- We turn OFF numbering and the creation of TOCs for HTML Help. -->

<!-- Should chapters be labeled? 0 or 1 -->
<xsl:param name="chapter.autolabel" select="0"/>

<!-- Should sections be labeled? 0 or 1 -->
<xsl:param name="section.autolabel" select="0"/>

<!-- Should chapter number be in section number? 1.1, 1.2, etc. 0 or 1 -->
<xsl:param name="section.label.includes.component.label" select="0" doc:type="boolean"/>

<!-- Should a TOC be generated for the book? -->
<xsl:param name="generate.book.toc" select='0' doc:type='boolean'/>

<!-- Should a TOC be generated for an article? -->
<xsl:param name="generate.article.toc" select='0' doc:type='boolean'/>

<!-- Should a TOC be generated for components? (chaps, apps, etc.) -->
<xsl:param name="generate.component.toc" select="0" doc:type='boolean'/>
<xsl:param name="generate.chapter.toc" select='0' doc:type='boolean'/>
<xsl:param name="generate.appendix.toc" select='0' doc:type='boolean'/>
<xsl:param name="generate.section.toc" select='0' doc:type='boolean'/>

Dan York, Director of Training        dyork@e-smith.com
Ph: +1-613-751-4401 Cell: +1-613-263-4312 Fax: +1-613-564-7739 
Mitel Network Corporation Network Server Solutions Group 
150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/            http://www.mitel.com/           

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

Powered by eList eXpress LLC