Next in thread → Next in month →

Re: [docbook-apps] where is the default stylesheet template for d:address ?

From
Bob Stayton <>
Date
2009-03-18T16:52:54+00:00
ID
009101c9a7e9$f1a0de00$6400a8c0@pazu
Thread
Re: [docbook-apps] where is the default stylesheet template for d:address ?
Hi,
The template for d:address with no mode is in fo/verbatim.xsl.

You could use an fo:table with column span for the first four items.  The 
problem with table is the vertical spacing. A table-cell is treated as a 
reference area, in which the first space-before and and last space-after 
tends to be ignored unless you set the space-after.conditionality="retain" 
to force it.

Or you could put each of the first four in fo:blocks, and the last four each 
in an fo:list-block with the same value of 
provisional-distance-between-starts.  With each in its own block, you have 
complete control over vertical spacing.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Bergfrid Skaara" <>
To: <>
Sent: Wednesday, March 18, 2009 9:17 AM
Subject: [docbook-apps] where is the default stylesheet template for 
d:address ?


> I'm trying to create a custom template for d:address (part of
> info/author) with mode=titlepage.mode (fo output).
>
> I need to change some line breaks and alignment, so I tried to locate
> the default template matching d:address to override only what i
> strictly necessary.
> However, I cannot find such a template anywhere, only a mention in
> fo/titlepage.xsl saying something like "use default". Does anyone know
> in which file it i located?
>
> In case finding this template is a dead end, suggestions on how to
> achieve the following layout of address element?
> The last 4 elements have a text label and then the element's value-of
> aligned like a right column.
>
> address/otheraddr (used for company name since person.name is
> semantically misleading)
> address/street
> address/zipcode address/city (on the same line separated by single space)
> address/country
>
> Phone:      address/phone
> Fax:          address/fax
>
> Email:       address/email
> Internet:     address/uri
>
>
> I'm thinking about using a fo:table for the entire address element,
> but it would be nice to reuse existing templates.
>
>
> I'm working with the DocBook stylesheets embedded with oXygen XML
> Editor 10.0 for DocBook 5.0 (sorry, I don't know how to find the exact
> stylesheet version).
>
> Best regards,
> Bergfrid Skaara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →