Next / Previous / Contents / NM Tech homepage

11.2.2. The book.title template

For a book, it is customary to show just the title and author on the first (recto) page, and present the remaining content (e.g., the abstract) on the second (verso) page. This template is invoked by the book title page template; see Section 13.2, “Title page for a book.

zdp_fo.xsl
<!--book.title: Title components--> 
<xsl:template name="book.title">
  <xsl:param name="node" select="."/>
  <xsl:param name="pagewide" select="0"/>
  <xsl:variable name="id">
    <xsl:call-template name="object.id">
      <xsl:with-param name="object" select="$node"/>
    </xsl:call-template>
  </xsl:variable>
  <xsl:variable name="title">
    <xsl:apply-templates select="$node" mode="object.title.markup">
      <xsl:with-param name="allow-anchors" select="1"/>
    </xsl:apply-templates>
  </xsl:variable>
  <fo:block hyphenate="false">
    <fo:block text-align="right">
      <fo:external-graphic src="{$pdf.logo}"/>
    </fo:block>
    <fo:block text-align="center" margin-top="6pc" margin-bottom="3pc">
      <xsl:copy-of select="$title"/>
    </fo:block>
  </fo:block>
</xsl:template>