]> granicus.if.org Git - docbook-dsssl/commitdiff
Support colophon
authorNorman Walsh <ndw@nwalsh.com>
Thu, 9 Aug 2001 10:09:58 +0000 (10:09 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 9 Aug 2001 10:09:58 +0000 (10:09 +0000)
xsl/fo/component.xsl
xsl/fo/titlepage.templates.xml
xsl/fo/titlepage.xsl

index 2ae88c35a12ab6ac68276e15b35ad949e45c5427..c396ffafdbdbdb6d91b0817076a7c8a3b9d6c1c4 100644 (file)
 
 <!-- ==================================================================== -->
 
+<xsl:template match="colophon">
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+  <xsl:variable name="master-name">
+    <xsl:call-template name="select.pagemaster"/>
+  </xsl:variable>
+
+  <fo:page-sequence id="{$id}"
+                    hyphenate="{$hyphenate}"
+                    format="i"
+                    master-name="{$master-name}">
+    <xsl:attribute name="language">
+      <xsl:call-template name="l10n.language"/>
+    </xsl:attribute>
+    <xsl:if test="$double.sided != 0">
+      <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+    </xsl:if>
+
+    <xsl:apply-templates select="." mode="running.head.mode">
+      <xsl:with-param name="master-name" select="$master-name"/>
+    </xsl:apply-templates>
+    <xsl:apply-templates select="." mode="running.foot.mode">
+      <xsl:with-param name="master-name" select="$master-name"/>
+    </xsl:apply-templates>
+
+    <fo:flow flow-name="xsl-region-body">
+      <xsl:call-template name="colophon.titlepage"/>
+      <xsl:apply-templates/>
+    </fo:flow>
+  </fo:page-sequence>
+</xsl:template>
+
+<xsl:template match="colophon/title"></xsl:template>
+<xsl:template match="colophon/subtitle"></xsl:template>
+<xsl:template match="colophon/titleabbrev"></xsl:template>
+
+<!-- ==================================================================== -->
+
 <xsl:template match="preface">
   <xsl:variable name="id">
     <xsl:call-template name="object.id"/>
index e1e390acb659d67f73e68a24acd82f3cf86b604a..1655e3305dbcdc07652b1d0381be77518a5138d4 100644 (file)
     </t:titlepage-before>
   </t:titlepage>
 
+<!-- ==================================================================== -->
+
+  <t:titlepage element="colophon" wrapper="fo:block">
+    <t:titlepage-content side="recto">
+      <title
+            force="1"
+            named-template="component.title"
+            param:node="ancestor-or-self::colophon[1]"
+            fo:margin-left="-4pc"
+            fo:font-size="&hsize3;"
+            fo:font-family="{$title.font.family}"
+            fo:font-weight="bold"/>
+      <subtitle
+               fo:font-family="{$title.font.family}"/>
+    </t:titlepage-content>
+
+  <t:titlepage-content side="verso">
+  </t:titlepage-content>
+
+  <t:titlepage-separator>
+  </t:titlepage-separator>
+
+  <t:titlepage-before side="recto">
+  </t:titlepage-before>
+
+  <t:titlepage-before side="verso">
+  </t:titlepage-before>
+</t:titlepage>
+
 <!-- ==================================================================== -->
 
   <t:titlepage element="table.of.contents" wrapper="fo:block">
index 162c47407eb98b2d6b2b74f0537a8eee2ca17026..d5a299b1d5ea544b1b4525dc36487f34d675110d 100644 (file)
@@ -67,6 +67,9 @@
 <xsl:attribute-set name="index.titlepage.recto.style"/>
 <xsl:attribute-set name="index.titlepage.verso.style"/>
 
+<xsl:attribute-set name="colophon.titlepage.recto.style"/>
+<xsl:attribute-set name="colophon.titlepage.verso.style"/>
+
 <xsl:attribute-set name="section.titlepage.recto.style"/>
 <xsl:attribute-set name="section.titlepage.verso.style"/>