This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Getting current section title in header?
- From: Steinar Bang <sb at dod dot no>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 26 Jan 2004 13:13:13 +0100
- Subject: [docbook-apps] Getting current section title in header?
- Cancel-lock: sha1:1gSR47iLbRHkrAlYf1pvPycKx3I=
- Organization: Probably a good idea
Is it possible to get the current section title into the header for
articles?
I'm trying to customize the header.content template.
As in the pagesetup.xsl original, I get the document title using:
<xsl:apply-templates select="." mode="titleabbrev.markup"/>
According to Bob's book,
http://www.sagehill.net/docbookxsl/PrintHeaders.html#d0e13380
this will match the current section in book, and the article, chapter,
or appendix header, in non-book.
According to the next section,
http://www.sagehill.net/docbookxsl/PrintHeaders.html#PrintHeadersText
the header.content template is called with element that starts a page
sequence.
Ie. the header.template for all pages will be called with select="."
matching the start of the page sequence.
There is nothing matching the current page's position in the document,
and therefore nothing I can see that I can use to find the current
section title (by current section, I mean the first section on a page,
if there are more than one section starting on a page).
Or is there something I haven't found yet?
Thanx!
- Steinar
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.