]> granicus.if.org Git - docbook-dsssl/commitdiff
Pass the pageclass, sequence, and gentext-key to the template
authorBob Stayton <bobs@sagehill.net>
Thu, 26 May 2011 16:44:23 +0000 (16:44 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 26 May 2011 16:44:23 +0000 (16:44 +0000)
named header.footer.widths to enable further customization
based on page master.

xsl/fo/pagesetup.xsl

index e64f6d4bb8a5e3cd49087ef6520b0d612c8559f6..594026a29e5c3ecdf6b66e4c0fff3389c901e4cc 100644 (file)
           <xsl:call-template name="header.footer.width">
             <xsl:with-param name="location">header</xsl:with-param>
             <xsl:with-param name="position" select="$column1"/>
+            <xsl:with-param name="pageclass" select="$pageclass"/>
+            <xsl:with-param name="sequence" select="$sequence"/>
+            <xsl:with-param name="gentext-key" select="$gentext-key"/>
           </xsl:call-template>
           <xsl:text>)</xsl:text>
         </xsl:attribute>
           <xsl:call-template name="header.footer.width">
             <xsl:with-param name="location">header</xsl:with-param>
             <xsl:with-param name="position" select="2"/>
+            <xsl:with-param name="pageclass" select="$pageclass"/>
+            <xsl:with-param name="sequence" select="$sequence"/>
+            <xsl:with-param name="gentext-key" select="$gentext-key"/>
           </xsl:call-template>
           <xsl:text>)</xsl:text>
         </xsl:attribute>
           <xsl:call-template name="header.footer.width">
             <xsl:with-param name="location">header</xsl:with-param>
             <xsl:with-param name="position" select="$column3"/>
+            <xsl:with-param name="pageclass" select="$pageclass"/>
+            <xsl:with-param name="sequence" select="$sequence"/>
+            <xsl:with-param name="gentext-key" select="$gentext-key"/>
           </xsl:call-template>
           <xsl:text>)</xsl:text>
         </xsl:attribute>
 <xsl:template name="header.footer.width">
   <xsl:param name="location" select="'header'"/>
   <xsl:param name="position" select="1"/>
+  <xsl:param name="pageclass" select="''"/>
+  <xsl:param name="sequence" select="''"/>
+  <xsl:param name="gentext-key" select="''"/>
+
+  <!-- The location param is either 'header' or 'footer'.
+       The position param is one of '1', '2', or '3' to indicate
+       which column of the header or footer table. -->
+       
+  <!-- The pageclass, sequence, and gentext-key values are passed
+       from the header.table or footer.table template.  They are
+       not currently used, but are made available here
+       for customization of this template. -->
 
   <xsl:variable name="width.set">
     <xsl:choose>
           <xsl:call-template name="header.footer.width">
             <xsl:with-param name="location">footer</xsl:with-param>
             <xsl:with-param name="position" select="$column1"/>
+            <xsl:with-param name="pageclass" select="$pageclass"/>
+            <xsl:with-param name="sequence" select="$sequence"/>
+            <xsl:with-param name="gentext-key" select="$gentext-key"/>
           </xsl:call-template>
           <xsl:text>)</xsl:text>
         </xsl:attribute>
           <xsl:call-template name="header.footer.width">
             <xsl:with-param name="location">footer</xsl:with-param>
             <xsl:with-param name="position" select="2"/>
+            <xsl:with-param name="pageclass" select="$pageclass"/>
+            <xsl:with-param name="sequence" select="$sequence"/>
+            <xsl:with-param name="gentext-key" select="$gentext-key"/>
           </xsl:call-template>
           <xsl:text>)</xsl:text>
         </xsl:attribute>
           <xsl:call-template name="header.footer.width">
             <xsl:with-param name="location">footer</xsl:with-param>
             <xsl:with-param name="position" select="$column3"/>
+            <xsl:with-param name="pageclass" select="$pageclass"/>
+            <xsl:with-param name="sequence" select="$sequence"/>
+            <xsl:with-param name="gentext-key" select="$gentext-key"/>
           </xsl:call-template>
           <xsl:text>)</xsl:text>
         </xsl:attribute>