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] Font size changes in <author> and <affiliation>


Title: Re: [docbook-apps] Font size changes in <author> and <affi
Thanks Bob - I'm still missing something.  I added your code

<xsl:template match="author" mode="book.titlepage.recto.mode">
 
<fo:block font-size="23pt"
            color="blue"
            space-before="20pt"
            keep-with-next.within-column="always">
   
<xsl:apply-templates select="." mode="titlepage.mode"/>
 
</fo:block>
 
<fo:block font-size="12pt"
            color="green"
            space-before="18pt" >
   
<xsl:apply-templates select="affiliation" mode="titlepage.mode"/>
 
</fo:block>
</xsl:template>
to my customization layer, but this has no effect at all, so there must be something of higher priority over-ruling it.

Both author and  affiliation are output on the title page by XEP 4.9

I am using the standard titlepage.templates.xsl which contains

<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" space-before="10.8pt" keep-with-next.within-column="always">
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
and

<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
I've tried taking the 'auto' out of these, but no effect

Any help much appreciated.

Ron

As I describe in this section of my book:
 
http://www.sagehill.net/docbookxsl/TitlePagePrint.html#TitlepageElementTemplates
 
you can customize how a particular element is handled on a titlepage by customizing the template in the mode without the "auto" in the mode name, in this case mode="book.titlepage.recto.mode".  For example:
 
<xsl:template match="author" mode="book.titlepage.recto.mode">
  <fo:block font-size="23pt"
            color="blue"
            space-before="20pt"
            keep-with-next.within-column="always">
    <xsl:apply-templates select="." mode="titlepage.mode"/>
  </fo:block>
  <fo:block font-size="12pt"
            color="green"
            space-before="18pt" >
    <xsl:apply-templates select="affiliation" mode="titlepage.mode"/>
  </fo:block>
</xsl:template>

(I use color here just to indicate that it is working).
 
Because this template is applied within the block created in the mode name that includes "auto", it will inherit all those attributes, so you need to override any that you don't want.
 
In this case, the affiliation would not normally appear on a book titlepage.  The default handling of author in fo/titlepage.xsl in mode="titlepage.mode" has one template with a general match on author which also processes the affiliation.  But there is a second template that specifically matches on bookinfo/author with priority="2", which takes precedence in this case.  That template does not output affiliation.  So your customization needs to handle the components of author the way you want them.
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
 

-- 
Ron Catterall, Phd, DSc                         email: ron@catterall.net
Prolongacion de Hidalgo 140                             http://catterall.net/
San Felipe del Agua                                        tel: +52 951 520 1821
Oaxaca      68020  Mexico                          fax: +1 530 348 8309


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