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


----- Original Message ----- 
From: "Bergfrid Skaara" <bergfrid.digitaldias@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
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: 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]