]> granicus.if.org Git - docbook-dsssl/commitdiff
Keep section titles together with their sections
authorNorman Walsh <ndw@nwalsh.com>
Mon, 8 Oct 2001 12:11:32 +0000 (12:11 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 8 Oct 2001 12:11:32 +0000 (12:11 +0000)
xsl/fo/titlepage.xsl

index d8f5f16ff9da8420828e5a16dd64a2da07fb026f..8bcb03efbb1c406a0bea2ee81903192fca065069 100644 (file)
 <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"/>
+<xsl:attribute-set name="section.titlepage.recto.style">
+  <xsl:attribute name="keep-together">always</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="section.titlepage.verso.style">
+  <xsl:attribute name="keep-together">always</xsl:attribute>
+  <xsl:attribute name="keep-with-next">always</xsl:attribute>
+</xsl:attribute-set>
 
 <xsl:attribute-set name="sect1.titlepage.recto.style"
                    use-attribute-sets="section.titlepage.recto.style"/>
 
 <xsl:template match="author" mode="titlepage.mode">
   <fo:wrapper>
-    <xsl:if test="@id">
-      <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
-    </xsl:if>
+    <xsl:call-template name="anchor"/>
     <xsl:call-template name="person.name"/>
     <xsl:apply-templates select="affiliation" mode="titlepage.mode"/>
   </fo:wrapper>