This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Modifying articleinfo element
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Peter Desjardins" <pdesjardins at supplyscape dot com>, <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 15 Apr 2005 14:22:17 -0700
- Subject: Re: Modifying articleinfo element
- References: <22881E6B33A5C34896192F32CD5D5BD80EB416@TWIKI.supplyscape.com>
The stylesheets don't treat articleinfo as a section. In fact, the template
that matches article/articleinfo is empty. Think of articleinfo as just a
pool of information that the titlepage stylesheets use to build the
titlepage. In general, you should try to use the titlepage spec file to
indicate how you want your titlepage information handled. The spec file is
described here:
http://www.sagehill.net/docbookxsl/HTMLTitlePage.html
It is the spec file that determines which elements in articleinfo appear, in
what order, and with what properties. When the spec file is processed into
a new titlepage.templates.xsl, you will find in it templates that match the
elements in articleinfo. Those templates were created from the spec file.
In the spec file, you can also add properties to the overall element used
for the titlepage information. This seems to work in a customized spec
file:
<t:titlepage t:element="article" t:wrapper="fo:block"
background-color="#EEEEEE"
font-family="{$title.fontset}">
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Peter Desjardins" <pdesjardins@supplyscape.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, April 15, 2005 1:44 PM
Subject: Modifying articleinfo element
I want to shade the background of the entire articleinfo section in an
article. I've been going through _DocBook XSL_ but have not yet
determined how to do this.
I think I might need to insert this line from ../fo/component.xsl in my
customization layer:
<xsl:template match="article/articleinfo"></xsl:template>
Is this the way to alter the appearance of the element?
Please pardon my naive question. I would really appreciate some
guidance as to what steps I would take to do this.
Thanks.
Peter Desjardins
SupplyScape Corporation
617-453-5760 x441
http://www.supplyscape.com