Hi Dave,
Yes, using mode="titleabbrev.markup" is the way to get the titleabbrev when you need
it. It falls back to the title if there is no titleabbrev.
In fact, the default header declared in the 'header.content' template in
fo/pagesetup.xsl uses that mode for the chapter and section titles in the header, and
for the TOC entry in the 'toc.line' template in fo/autotoc.xsl. Myself, I'm not sure I
agree with that latter usage, as a user might be confused when the title they land on
from the TOC link differs from the TOC entry. At least in the running header you have
the context of the chapter you are in to reduce confusion.
I'm not clear what you mean about about the long chapter title. There is a
mode="titleabbrev.markup" for chapter in DocBook XSL. Are you talking about the title
on the chapter title page itself?
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "davep" <[email protected]>
To: "Docbook-apps" <[email protected]>
Sent: Tuesday, August 09, 2011 1:56 AM
Subject: [docbook-apps] titleabbrev, docbook v5
http://www.docbook.org/tdg/en/html/titleabbrev.html
says
"One common use of|TitleAbbrev|
<http://www.docbook.org/tdg/en/html/titleabbrev.html>is for the text used in running
headers or footers, when the proper title is too long to be used conveniently."
I can't find any customization that indicates that I want to use this for running
headers?
header.content sets a call to
<xsl:apply-templates select="."
mode="title.markup"/>
to obtain the title value...
Is it right to use
apply-templates select="." mode="titleabbrev.markup"/>
which seems to work fine.
Leaves the problem of a chapter title that is too long
for a single line.
Shame this couldn't be processed in the same way....
Unless you know better?
regarsd
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]