This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: header and footer adding - help please


> From: Ewa Szulc <ewa@informa.com.pl>
> 
> hi!
> 
> I am quite new to docbook and xml.
> I am writing an user guide in docbook.
> I want to add a header and footer to every html side.
> Just like e.g:
> 
> http://www.linux-mandrake.com/en/doc/81/en/user.html/tools.html
> 
> I want it to have a navigation menu (PREV, NEXT, HOME) and chapter in=
> fo in header and footer.
> And some other info like in my example second footer:
> "Linux is a registered trademark of Linus Torvalds. All other tradema=
> rks and copyrights are the property....."

Most of the header and footer content you see on that
site are standard DocBook XSL style when the "chunk.xsl"
stylesheet is used instead of the standard "docbook.xsl"
stylesheet.  Chunking breaks your DocBook document into
many HTML files, and the headers and footers provide
navigation.

The Docbook XSL stylesheets include a facility for adding
your own content to the standard navigational stuff.
You need to create a customization layer that includes
a new <xsl:template> named "user.footer.navigation".  That
template should generate the extra HTML you want added.
That template name is automatically called after the
standard footer.  You'll have to learn some XSL to write
that template.

For an example of a customization layer using chunk.xsl,
see this posting from Dan York:

http://lists.oasis-open.org/archives/docbook-apps/200107/msg00204.html

bobs
Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com

----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]