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] | [List Home]


Subject: Re: [docbook-apps] titleabbrev, docbook v5


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
bobs@sagehill.net


----- Original Message ----- 
From: "davep" <davep@dpawson.co.uk>
To: "Docbook-apps" <docbook-apps@lists.oasis-open.org>
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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 



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