]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed missing "Part n." label for part titles.
authorBob Stayton <bobs@sagehill.net>
Sun, 10 Jul 2005 08:27:58 +0000 (08:27 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 10 Jul 2005 08:27:58 +0000 (08:27 +0000)
xsl/html/division.xsl
xsl/html/titlepage.templates.xml

index a61363ff1c30f7e85fca1f8606a9e2db75235702..c412866544315b440b9a1e134f14c9efa79b866f 100644 (file)
   <xsl:number from="book" count="part" format="I."/>
 </xsl:template>
 
+<!-- ==================================================================== -->
+
+<xsl:template name="division.title">
+  <xsl:param name="node" select="."/>
+
+  <h1>
+    <xsl:attribute name="class">title</xsl:attribute>
+    <xsl:call-template name="anchor">
+      <xsl:with-param name="node" select="$node"/>
+      <xsl:with-param name="conditional" select="0"/>
+    </xsl:call-template>
+    <xsl:apply-templates select="$node" mode="object.title.markup">
+      <xsl:with-param name="allow-anchors" select="1"/>
+    </xsl:apply-templates>
+  </h1>
+</xsl:template>
+
 </xsl:stylesheet>
 
index 42c94524a588524cd580ba12166e6bdddc33d860..664dc14e2e500a85a78ba672e757df61c96890c1 100644 (file)
 
 <t:titlepage t:element="part" t:wrapper="div" class="titlepage">
   <t:titlepage-content t:side="recto">
-    <title/>
+    <title
+          t:force="1"
+          t:named-template="division.title"
+          param:node="ancestor-or-self::part[1]"/>
     <subtitle/>
     <corpauthor/>
     <authorgroup/>