← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook-apps] how to add fo:block-container around title andsubtitle on the titlepage

From
Stefan Heuer <>
Date
2008-05-29T15:28:34+00:00
ID
Thread
Re: [docbook-apps] how to add fo:block-container around title andsubtitle on the titlepage
Hi Nancy,

I had some problems to customize the title page of my document too. I 
work on a book document. So I customize the template: 
name="book.titlepage" here a sketch:

<xsl:template name="book.titlepage">
        <fo:table table-layout="fixed" width="16cm"  break-after="page">
            <fo:table-column column-width="16cm" />
            <fo:table-body>
                <fo:table-row ...

                </fo:table-row ...
            </fo:table-body>
        </fo:table>
        <fo:block >
             <!-- some text on second title page -->
        </fo:block>
</xsl:template>

Regards

Stefan


Nancy Brandt schrieb:
>  Hi folks,
> 
>  I am trying to customize *my_titlepage.xsl* with the help of 
*titlepage.templates.xml *file which I will process with fo/titlepage.xsl.
> 
>  What I need to define in this XML file is a <fo:block-container> 
around the <title> and <subtitle> elements, like so:
> 
>  <fo:block-container>
>  <title>
>  <subtitle>
>  </fo:block-container>
> 
>  The problem is that I don't know how to define the block-container in 
XML, so that after processing this XML file with fo/titlepage.xsl, the 
title and subtitle will be inside the
>  <fo:block-container> in the resulting *my_titlepage.xsl*.
> 
>  Example from titlepage.templates.xml:
> 
>  <t:titlepage-content t:side="recto"
>              text-align="center">
> 
>   <!-- here I want the fo:block-container to start-->
>     <title
>            t:named-template="component.title"
>            param:node="ancestor-or-self::article[1]"
>            font-size="&hsize5;"
>            font-weight="bold"
>            keep-with-next="always" />
>
>     <subtitle/>
>  <!-- here I want the fo:block-container to end-->
>
>         ...
>   </t:titlepage-content>
> 
>  Please, advise!!!
> 
>  Thanks in advance!
>  Nancy
>
← Prev in month ← Prev in thread
Next in thread → Next in month →