W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2002

Re: global and local variable

From: Sébastien Dartigues <sebastien.dartigues@cgey.com>
Date: Wed, 21 Aug 2002 18:03:59 +0200
Message-ID: <000e01c2492c$5d20e220$3bd1430a@sudouest.capgemini.fr>
To: "Max Froumentin" <mf@w3.org>
Cc: <www-xsl-fo@w3.org>


>> 1- if i have a multi page result (composed by a table) how to make go the
>> border of the designed table-row on the second page until the beginning of
>> the footer....

>If a table spans more than one page, you cannot control the borders of
>a particular table row depending on the page, since you have no way to
>know on which page it will end up on.

ok :( 

>> 2- i'm not able to make the table in the footer centered..... it's align on
>> the right only... why??

>Did you try text-align="center" as below?

>>  <fo:page-sequence master-reference="spm1" initial-page-number="1">
>>   <fo:static-content flow-name="footer">
>>     <fo:block text-align="center">
>>      <fo:table>

text-align only center the text and not the table....
so i cheat using a table with 3 columns the columns in the middle is the main one (the main table)..... like this :

<fo:static-content flow-name="footer">
    <fo:block>
      <fo:table table-layout="fixed" width="100%">
        <fo:table-column column-width="proportional-column-width(1)"/>
        <fo:table-column column-width="proportional-column-width(12)"/>
        <fo:table-column column-width="proportional-column-width(1)"/>
        <fo:table-body>
           <fo:table-row>
              <fo:table-cell/>
              <fo:table-cell>
                <fo:table>
               <fo:table-column column-width="59.1pt"/>
               <fo:table-column column-width="90.3pt"/>
               <fo:table-column column-width="241.25pt"/>
               <fo:table-column column-width="48.75pt"/>
               <fo:table-column column-width="77.7pt"/>
               <fo:table-body>
                <fo:table-row height="16.5pt">
                 <fo:table-cell background-color="#C0C0C0" border-bottom-color="black" border-bottom-style="solid" border-bottom-width="0.5pt" border-left-color="black" border-left-style="solid" border-left-width="1.0pt" border-right-color="black" border-right-style="solid" border-right-width="1.0pt" border-top-color="black" border-top-style="solid" border-top-width="0.5pt" display-align="center" number-columns-spanned="5" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="black" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="bold" keep-with-next="always" orphans="2" text-align="center" text-decoration="none" vertical-align="baseline" widows="2">
                   <fo:leader line-height="10pt"/>
                  </fo:block>
                 </fo:table-cell>
                </fo:table-row>
                <fo:table-row height="15.0pt">
                 <fo:table-cell border-bottom-color="black" border-bottom-style="dotted" border-bottom-width="0.5pt" border-left-color="black" border-left-style="solid" border-left-width="1.0pt" border-right-color="black" border-right-style="dotted" border-right-width="0.5pt" border-top-color="black" border-top-style="solid" border-top-width="0.5pt" display-align="center" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="black" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="bold" keep-with-next="always" orphans="2" text-align="start" text-decoration="none" vertical-align="baseline" widows="2">Project</fo:block>
                 </fo:table-cell>
                 <fo:table-cell border-bottom-color="black" border-bottom-style="dotted" border-bottom-width="0.5pt" border-left-color="black" border-left-style="dotted" border-left-width="0.5pt" border-right-color="black" border-right-style="solid" border-right-width="0.5pt" border-top-color="black" border-top-style="solid" border-top-width="0.5pt" display-align="center" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="#0000FF" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="normal" orphans="2" text-align="start" text-decoration="none" vertical-align="baseline" widows="2">&lt;PROJECT_ID&gt;</fo:block>
                 </fo:table-cell>
                 <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt" display-align="center" number-rows-spanned="2" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="black" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="normal" orphans="2" text-align="start" text-decoration="none" vertical-align="baseline" widows="2">
                           <fo:retrieve-marker retrieve-class-name="variable" retrieve-position="first-starting-within-page" retrieve-boundary="page"/>
                  </fo:block>
                 </fo:table-cell>
                 <fo:table-cell border-bottom-color="black" border-bottom-style="dotted" border-bottom-width="0.5pt" border-left-color="black" border-left-style="solid" border-left-width="0.5pt" border-right-color="black" border-right-style="dotted" border-right-width="0.5pt" border-top-color="black" border-top-style="solid" border-top-width="0.5pt" display-align="center" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="black" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="bold" keep-with-next="always" orphans="2" text-align="start" text-decoration="none" vertical-align="baseline" widows="2">Cha,ter</fo:block>
                 </fo:table-cell>
                 <fo:table-cell border-bottom-color="black" border-bottom-style="dotted" border-bottom-width="0.5pt" border-left-color="black" border-left-style="dotted" border-left-width="0.5pt" border-right-color="black" border-right-style="solid" border-right-width="1.0pt" border-top-color="black" border-top-style="solid" border-top-width="0.5pt" display-align="center" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="black" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="normal" orphans="2" text-align="start" text-decoration="none" vertical-align="baseline" widows="2">CONTENTS</fo:block>
                 </fo:table-cell>
                </fo:table-row>
                <fo:table-row height="15.0pt">
                 <fo:table-cell border-bottom-color="black" border-bottom-style="solid" border-bottom-width="1.0pt" border-left-color="black" border-left-style="solid" border-left-width="1.0pt" border-right-color="black" border-right-style="dotted" border-right-width="0.5pt" border-top-color="black" border-top-style="dotted" border-top-width="0.5pt" display-align="center" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="black" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="bold" orphans="2" text-align="start" text-decoration="none" vertical-align="baseline" widows="2">Issue / Date</fo:block>
                 </fo:table-cell>
                 <fo:table-cell border-bottom-color="black" border-bottom-style="solid" border-bottom-width="1.0pt" border-left-color="black" border-left-style="dotted" border-left-width="0.5pt" border-right-color="black" border-right-style="solid" border-right-width="0.5pt" border-top-color="black" border-top-style="dotted" border-top-width="0.5pt" display-align="center" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="#0000FF" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="normal" orphans="2" text-align="start" text-decoration="none" vertical-align="baseline" widows="2">&lt;ISSUE&gt; &lt;DATE&gt;</fo:block>
                 </fo:table-cell>
                 <fo:table-cell border-bottom-color="black" border-bottom-style="solid" border-bottom-width="1.0pt" border-left-color="black" border-left-style="solid" border-left-width="0.5pt" border-right-color="black" border-right-style="dotted" border-right-width="0.5pt" border-top-color="black" border-top-style="dotted" border-top-width="0.5pt" display-align="center" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="black" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="bold" orphans="2" text-align="start" text-decoration="none" vertical-align="baseline" widows="2">Page</fo:block>
                 </fo:table-cell>
                 <fo:table-cell border-bottom-color="black" border-bottom-style="solid" border-bottom-width="1.0pt" border-left-color="black" border-left-style="dotted" border-left-width="0.5pt" border-right-color="black" border-right-style="solid" border-right-width="1.0pt" border-top-color="black" border-top-style="dotted" border-top-width="0.5pt" display-align="center" padding-left="1.4pt" padding-right="1.4pt">
                  <fo:block background-color="white" color="#FF0000" font-family="Arial, Helvetica" font-size="10.0pt" font-style="normal" font-variant="normal" font-weight="normal" orphans="2" text-align="start" text-decoration="none" vertical-align="baseline" widows="2">&lt;PAGE&gt;</fo:block>
                 </fo:table-cell>
                </fo:table-row>
               </fo:table-body>
        </fo:table>
              </fo:table-cell>
                    <fo:table-cell/>
    </fo:table-row>
   </fo:table-body>
   </fo:table>
    </fo:block>
   </fo:static-content>

thank u for ur help....
now i will finish with the marker, i will try to make it work, if not i know where to ask... :))
Received on Wednesday, 21 August 2002 12:03:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT