]> granicus.if.org Git - docbook-dsssl/commitdiff
Use proportional-column-width() for header/footer tables; suppress relative-align...
authorNorman Walsh <ndw@nwalsh.com>
Thu, 23 Jan 2003 22:44:38 +0000 (22:44 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 23 Jan 2003 22:44:38 +0000 (22:44 +0000)
xsl/fo/pagesetup.xsl

index 573ef801cd2863aa54725349b6d22e760ad95ff8..4b21364c142d729e026b1fafa1a39d88594698ab 100644 (file)
   <xsl:variable name="candidate">
     <fo:table table-layout="fixed" width="100%">
       <xsl:call-template name="head.sep.rule"/>
-      <fo:table-column column-number="1" column-width="33%"/>
-      <fo:table-column column-number="2" column-width="34%"/>
-      <fo:table-column column-number="3" column-width="33%"/>
+      <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
+      <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
+      <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
       <fo:table-body>
         <fo:table-row height="14pt">
           <fo:table-cell text-align="left"
-                         relative-align="baseline"
                          display-align="before">
+            <xsl:if test="$fop.extensions = 0">
+              <xsl:attribute name="relative-align">baseline</xsl:attribute>
+            </xsl:if>
             <fo:block>
               <xsl:call-template name="header.content">
                 <xsl:with-param name="pageclass" select="$pageclass"/>
             </fo:block>
           </fo:table-cell>
           <fo:table-cell text-align="center"
-                         relative-align="baseline"
                          display-align="before">
+            <xsl:if test="$fop.extensions = 0">
+              <xsl:attribute name="relative-align">baseline</xsl:attribute>
+            </xsl:if>
             <fo:block>
               <xsl:call-template name="header.content">
                 <xsl:with-param name="pageclass" select="$pageclass"/>
             </fo:block>
           </fo:table-cell>
           <fo:table-cell text-align="right"
-                         relative-align="baseline"
                          display-align="before">
+            <xsl:if test="$fop.extensions = 0">
+              <xsl:attribute name="relative-align">baseline</xsl:attribute>
+            </xsl:if>
             <fo:block>
               <xsl:call-template name="header.content">
                 <xsl:with-param name="pageclass" select="$pageclass"/>
   <xsl:variable name="candidate">
     <fo:table table-layout="fixed" width="100%">
       <xsl:call-template name="foot.sep.rule"/>
-      <fo:table-column column-number="1" column-width="33%"/>
-      <fo:table-column column-number="2" column-width="34%"/>
-      <fo:table-column column-number="3" column-width="33%"/>
+      <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
+      <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
+      <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
       <fo:table-body>
         <fo:table-row height="14pt">
           <fo:table-cell text-align="left"
-                         relative-align="baseline"
                          display-align="after">
+            <xsl:if test="$fop.extensions = 0">
+              <xsl:attribute name="relative-align">baseline</xsl:attribute>
+            </xsl:if>
             <fo:block>
               <xsl:call-template name="footer.content">
                 <xsl:with-param name="pageclass" select="$pageclass"/>
             </fo:block>
           </fo:table-cell>
           <fo:table-cell text-align="center"
-                         relative-align="baseline"
                          display-align="after">
+            <xsl:if test="$fop.extensions = 0">
+              <xsl:attribute name="relative-align">baseline</xsl:attribute>
+            </xsl:if>
             <fo:block>
               <xsl:call-template name="footer.content">
                 <xsl:with-param name="pageclass" select="$pageclass"/>
             </fo:block>
           </fo:table-cell>
           <fo:table-cell text-align="right"
-                         relative-align="baseline"
                          display-align="after">
+            <xsl:if test="$fop.extensions = 0">
+              <xsl:attribute name="relative-align">baseline</xsl:attribute>
+            </xsl:if>
             <fo:block>
               <xsl:call-template name="footer.content">
                 <xsl:with-param name="pageclass" select="$pageclass"/>