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] Customising Title Pages Tutorial?


In this case, your text-align="right" is being overridden by the template
that processes the title in book.titlepage.recto.auto.mode.  That template
is generated from the titlepage.templates.xml spec file, and it centers book
titles.  So you will still need to customize a copy of the spec file to set
text-align to right for book titles, and generate a custom set of titlepage
templates.  I should clarify that in the example in my book.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Paul Moloney" <paul_moloney@hotmail.com>
To: "Thomas, Ludger" <Ludger.Thomas@iese.fraunhofer.de>;
<docbook-apps@lists.oasis-open.org>
Sent: Thursday, October 20, 2005 9:20 AM
Subject: Re: [docbook-apps] Customising Title Pages Tutorial?


> From: "Thomas, Ludger" <Ludger.Thomas@iese.fraunhofer.de>
>
> >Hi Paul,
> >Customizing titlepages is not that hard as it seems. I try to
> >explanin
> >how I did it.
>
> Thanks, Ludger. I've gotten that far, but I think I'm getting stuck in
> the
> details. However, here's a specific problem I'm having:
>
> I've created a custom title page file, which I called
> book.titlepage.recto.xsl
> (equivalent to your cstm_xsl, I believe.) I'm getting roughly the
> effect I'm looking for, in that
> I have the correct graphics and text on the title page. But the title
> appears wrong. The section
> of the file which  deals with that is:
>
>        <fo:table-row>
>
>          <fo:table-cell number-columns-spanned="2">
>            <fo:block text-align="right">
>              <xsl:choose>
>                <xsl:when test="bookinfo/title">
>                  <xsl:apply-templates
>                         mode="book.titlepage.recto.auto.mode"
>                         select="bookinfo/title"/>
>                </xsl:when>
>                <xsl:when test="title">
>                  <xsl:apply-templates
>                         mode="book.titlepage.recto.auto.mode"
>                         select="title"/>
>                </xsl:when>
>              </xsl:choose>
>            </fo:block>
>          </fo:table-cell>
>        </fo:table-row>
>
> As you can see, I've added "text-align="right"" to what is the
> default XSL.
>
> However, when I process this and produce a PDF, the title
> is centered.
>
> I thought that a setting in my customisation layer (in my case,
> simple_fo.xsl) might be overriding it, but I can't see any that
> would.
>
> Is there an attribute set or parameter I should be defining
> in my customisation layer?
>
> Regards,
>
> -pm
>
> http://oceanclub.blogspot.com
>
> "The hour has come! - ooooh, lucky hour! "
>
>
>
> ---------------------------------------------------------------------
> 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]