]> granicus.if.org Git - docbook-dsssl/commitdiff
Moved <fo:marker> for section heading to be first child
authorBob Stayton <bobs@sagehill.net>
Wed, 24 Jul 2002 16:05:10 +0000 (16:05 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 24 Jul 2002 16:05:10 +0000 (16:05 +0000)
of its parent block, per bug #586005 (and the XSL-FO spec).

xsl/fo/sections.xsl

index 2453d69f9585ed0e672440031aa3f656eb2c43e1..6eef811a894359e2f9e85f514c73f01739f4b230 100644 (file)
   <xsl:param name="title"/>
 
   <fo:block xsl:use-attribute-sets="section.title.properties">
+    <fo:marker marker-class-name="section.head.marker">
+      <xsl:copy-of select="$title"/>
+    </fo:marker>
     <xsl:choose>
       <xsl:when test="$level=1">
         <fo:block xsl:use-attribute-sets="section.title.level1.properties">
         </fo:block>
       </xsl:otherwise>
     </xsl:choose>
-    <fo:marker marker-class-name="section.head.marker">
-      <xsl:copy-of select="$title"/>
-    </fo:marker>
   </fo:block>
 </xsl:template>