Przeglądaj źródła

Updated docbook-xsl-snapshot to r6771.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8007 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 lat temu
rodzic
commit
20560cb14f

+ 1 - 1
docbook-xsl-snapshot/VERSION

@@ -17,7 +17,7 @@
 <fm:project>
   <fm:Project>DocBook</fm:Project>
   <fm:Branch>XSL Stylesheets</fm:Branch>
-  <fm:Version>snapshot_6770</fm:Version>
+  <fm:Version>snapshot_6771</fm:Version>
 <!--
   <fm:License>MIT/X Consortium License</fm:License>
 -->

+ 16 - 4
docbook-xsl-snapshot/fo/pagesetup.xsl

@@ -2277,15 +2277,27 @@
   <!-- This template is called after each <fo:flow> starts. -->
   <!-- Customize this template to set attributes on fo:flow -->
 
+  <!-- remove -draft from reference -->
+  <xsl:variable name="pageclass">
+    <xsl:choose>
+      <xsl:when test="contains($master-reference, '-draft')">
+        <xsl:value-of select="substring-before($master-reference, '-draft')"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:value-of select="$master-reference"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+
   <xsl:choose>
     <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">
       <!-- body.start.indent does not work well with these processors -->
     </xsl:when>
-    <xsl:when test="starts-with($master-reference, 'body') or
-                    starts-with($master-reference, 'lot') or
-                    starts-with($master-reference, 'front') or
+    <xsl:when test="starts-with($pageclass, 'body') or
+                    starts-with($pageclass, 'lot') or
+                    starts-with($pageclass, 'front') or
                     $element = 'preface' or
-                    (starts-with($master-reference, 'back') and
+                    (starts-with($pageclass, 'back') and
                     $element = 'appendix')">
       <xsl:attribute name="start-indent">
         <xsl:value-of select="$body.start.indent"/>