This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [NW-XSLT:FO] styling chapter (/component) titles
On Wed, Feb 05, 2003 at 10:17:54AM +0100, Tobias Reif wrote:
> Hi
>
> What's the best way to do this? (subj, [1])
> How to do it via the titlepage mechanism?
>
> TIA,
>
> Tobi
>
> [1]
> http://lists.oasis-open.org/archives/docbook-apps/200302/msg00000.html
> > I want to set component titles (chapter titles etc) to font weight
> > 100.
Edit a copy of titlepage.templates.xml to change:
<t:titlepage t:element="chapter" t:wrapper="fo:block"
font-family="{$title.font.family}">
<t:titlepage-content t:side="recto" margin-left="{$title.margin.left}">
<title t:named-template="component.title"
param:node="ancestor-or-self::chapter[1]"
font-size="&hsize5;"
font-weight="bold"/> <!-- change this line -->
to:
<t:titlepage t:element="chapter" t:wrapper="fo:block"
font-family="{$title.font.family}">
<t:titlepage-content t:side="recto" margin-left="{$title.margin.left}">
<title t:named-template="component.title"
param:node="ancestor-or-self::chapter[1]"
font-size="&hsize5;"
font-weight="100"/>
Repeat for other elements you want to change.
Then use template/titlepage.xsl to generate a new
titlepage.templates.xsl from it and include that in
your customization layer.
That worked for me using Saxon and FOP.
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com