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: Modifying Chapter first page


On Thu, Jan 09, 2003 at 07:36:36PM +0200, Togan Muftuoglu wrote:
> 
> Hi,
> 
> I amt to modify the the first page of the chapter layout but it has been
> a long day and I have lost track which *.xsl does what. Can some one put
> me back to track
> 
> This is what I want to have (sort of)  (similar to Oreilly layout)
> 
> --------------------
> Table of contents  |                                    1
>                    |
> Sect1 Title        |                            Chapter Title
> Sect1 Title        |
> Sect1 title        |
> --------------------
> 
> bla lba
> bla bla 
> bla bla 
> bla lba
> bla bla 
> bla bla 

The title pages are produced by templates such as
chapter.titlepage.recto in titlepage.templates.xsl.
Those templates are usually
generated from the titlepage.templates.xml spec file.
But if you want a custom layout like this, you are
generally better off defining chapter.titlepage.recto
by hand, using a table for laying out elements.
See
http://www.sagehill.net/xml/docbookxsl/PrintCustomEx.html#TitlepageTableLayout
for an example.

But this design will be more difficult, because the table of
contents is not part of the titlepage.  In the
match="chapter" template in component.xsl, there is a
call to the 'chapter.titlepage' template, followed by
a call to the 'component.toc' template to produce
the TOC.

You'll probably have to turn off the chapter TOC
with the 'generate.toc' parameter, and then have your
custom chapter.titlepage.recto template produce it anyway,
inside one of the layout table cells.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


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


Powered by eList eXpress LLC