This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] How to access the title of a document
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Oliver B. Fischer" <plexus at snafu dot de>, <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 16 Jul 2004 08:47:54 -0700
- Subject: Re: [docbook-apps] How to access the title of a document
- References: <40F7BFB8.6040503@snafu.de>
There isn't a single template that gets a document's title, but there is a
mode that returns the title of any element. You just need to select the
document's root element. Something like this should work:
<xsl:apply-templates mode="title.markup" select="/*[1]"/>
That mode knows how to find the title as either a child of the element or of
its *info element.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Oliver B. Fischer" <plexus@snafu.de>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, July 16, 2004 4:44 AM
Subject: [docbook-apps] How to access the title of a document
> Hello list,
>
> I going to create my own navheader template for chunked output.
>
> I would like to have the title of a document (article, book) in the
> header too but I didn't find a way how I can get the title. Is there
> generic template which I can call to get the document's title?
>
> Regards,
>
> Oliver Fischer
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.