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: Para alignment

Thank you for your help! I've managed to make it work.

<xsl:template match="para[@align]">
<fo:block text-align="{@align}">

Roland Burda

2012/3/5 Robert Nagle <idiotprogrammer@gmail.com>
You may be unfamiliar with how to include parameters in your XSL
customization layer.

Here is a reference to that:

Basically, for HTML output, you'd want to reference a css file and
then you can do it in your CSS file.

For FO (PDFs), you'd probably want to use this parameter

(Choose the "alignment"  parameter under 2.19. Pagination and General Styles).

If you need help getting started on a customization layer, look at
this: http://www.sagehill.net/docbookxsl/CustomMethods.html#CustomizationLayer

I can't speak about FO, but for html output, you'd want to use the
role attribute on a para tag

(That's not the only way -- you can write an XSL customization, but
this way is easiest).

Hope this helps.

Robert Nagle
6121 Winsome Ln #56C, Houston TX 77057-5581
(H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral Since Jan 2010

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