]> granicus.if.org Git - docbook-dsssl/commitdiff
Add new parameters body.start.indent and body.end.indent to
authorBob Stayton <bobs@sagehill.net>
Sat, 22 Jan 2005 06:29:45 +0000 (06:29 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 22 Jan 2005 06:29:45 +0000 (06:29 +0000)
the set.flow.properties template.

xsl/fo/pagesetup.xsl

index 5817a6f38832e9dd6a551010d2ce7e4346daf541..6eb8421f9e12388e0277a3e5055519d4cfc5202a 100644 (file)
 <xsl:template name="set.flow.properties">
   <xsl:param name="element" select="local-name(.)"/>
   <xsl:param name="master-reference" select="''"/>
-  <!-- customize this template to set attribute on fo:flow -->
+
+  <!-- This template is called after each <fo:flow> starts. -->
+  <!-- Customize this template to set attributes on fo:flow -->
+
+  <xsl:choose>
+    <xsl:when test="$master-reference = 'body' or
+                    $element = 'preface' or
+                    ($master-reference = 'back' and
+                    $element = 'appendix')">
+      <xsl:attribute name="start-indent">
+        <xsl:value-of select="$body.start.indent"/>
+      </xsl:attribute>
+      <xsl:attribute name="end-indent">
+        <xsl:value-of select="$body.end.indent"/>
+      </xsl:attribute>
+    </xsl:when>
+  </xsl:choose>
+
 </xsl:template>
 <!-- ==================================================================== -->