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] Titlepage customization

I'm at work right now, so I can't give you a detailed answer just yet. I've done the same thing. Basically, you can do this two ways:

1. include a page break in your block

  <fo:block break-after="page" ...

2. Probably better for your purposes, call on your own page sequences. Mine looks like this:

   <xsl:template match="d:article">
     <xsl:variable name="id">
       <xsl:call-template name="object.id"/>
     <xsl:call-template name="page.sequence">
       <xsl:with-param name="master-reference">titlepage</xsl:with-param>
       <xsl:with-param name="content">
         <fo:block id="{$id}"
           <xsl:call-template name="article.titlepage"/><!--my own custom title page so won't work for you-->
         <fo:block break-after="page"/>

     <xsl:call-template name="make.article.tocs"/>

     <xsl:call-template name="page.sequence">
       <xsl:with-param name="master-reference">body</xsl:with-param>
       <xsl:with-param name="content">

     <xsl:if test="$long.table != ''">
         <xsl:call-template name="make-long-tables"/>

     <xsl:if test="bibliography">
       <xsl:call-template name="page.sequence">
         <xsl:with-param name="master-reference">back</xsl:with-param>
         <xsl:with-param name="content">
           <xsl:apply-templates select="bibliography"/>

On Tue, Jan 31, 2012 at 2:47 PM, danmauer <dan.mauer@gmail.com> wrote:

So I'm having a hard time comprehending how to properly build a custom
titlepage specification XML file.

I've got the process down -- create the specification XML, transform it
using the template/titlepage.xsl stylesheet to generate a custom XSL
titlepage stylesheet, then import that into my regular customization

What I can't figure out is how to actually write the template.  My document
is an <article>, and in print format I want it to start out with a single
front title page, including the title, subtitle, a couple of PNG images, and
a date.  Then a second page containing the revision history, and finally a
third page with the table of contents.

I've based my titlepage spec file on the <t:titlepage t:element="article"
            font-family="{$title.fontset}">...</t:titlepage> section of the
titlepage.templates.xml file, I have no transformation errors and it's
definitely using the custom template, as if I (for example) remove the
revhistory section from the spec file, it disappears from my final document.

However, nothing I've tried seems to generate a page break, and I'm not
quite grasping how to embed and position the graphics either.

Any help would be much appreciated.

View this message in context: http://old.nabble.com/Titlepage-customization-tp33238812p33238812.html
Sent from the docbook apps mailing list archive at Nabble.com.

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]