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] | [List Home]


Subject: Re: [docbook-apps] "Chapter" prefix with chapter title in docbook version 1.73.4 in PDF and HTML report


Hi,
I seem to get different results from you. I just downloaded fresh copies of both versions, tested, and I get the same results in both.  In both 1.67.0 and 1.74.3, I get no "Chapter" prefix in the table of contents, and I get the "Chapter" prefix at the start of the chapter.
 
Are you using a customization layer?  If so, can you test with the stock stylesheet that the customization layer imports?  Is it possible that the original files in the 1.67.0 distribution were edited?   If you want to check a fresh download of 1.67.0, old versions of the stylesheets are archived here:
 
http://docbook.xml-doc.org/release/xsl/
 
To answer your question about fixing this, I can tell you how to fix the title that appears at the start of the chapter.  You need to change a couple of generated text values.  That process is documented here:
 
http://www.sagehill.net/docbookxsl/CustomGentext.html
 
Specifically you need to specify:
 
<l:context name="title">
  <l:template name="chapter" text="%n. %t"/>
</l:context>
 
and
 
<l:context name="title-numbered">
  <l:template name="chapter" text="%n. %t"/>
</l:context>
 
I'm not sure how to fix the "Chapter" prefix in the TOC because that is not standard behavior, so I don't know where it is coming from.
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
From: Bela Patel
Sent: Tuesday, March 10, 2009 8:55 AM
Subject: [docbook-apps] "Chapter" prefix with chapter title in docbook version 1.73.4 in PDF and HTML report

Hi,
 
I just upgraded my docbook version from 1.67.0 to version  1.74.3.
 
After upgrading I am getting "Chapter" prefix with Chapter title in TOC as well as in  report  for both PDF and HTML.
 
with 1.74.3 version I am getting chapter title as shown below.
Chapter 1. About this Document
 
with 1.67.0 version I was getting chapter title as shown below.
1. About this Document
 
I want the title as it was showing in version 1.67.0 without "Chapter" prefix. How can I change this title to look as older version 1.67.0?
 
Thanks in advance.,
 
 Bela.
 


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