[xep-support] fo:leaders: leader-alignment="reference-area" in list and tables

From: Thomas Schraitle <tom_schr@web.de>
Date: Sun Oct 23 2005 - 05:10:34 PDT

Hi,

assume I want to align dots vertically between two entries. I have the
following code which uses fo:leaders[1] in combination with
leader-alignment="reference-area"[2]:

 <fo:table margin-top="1em" border="0.1pt blue">
   <fo:table-column column-width="2em"
     text-align="right" padding-right="0.5em"/>
   <fo:table-column column-width="proportional-column-width(2)+2pc"/>
   <fo:table-column column-width="2em"/>
   <fo:table-body>

    <fo:table-row>
        <fo:table-cell>
           <fo:block>1.1. </fo:block>
        </fo:table-cell>
        <fo:table-cell>
          <fo:block
           text-align="start" text-align-last="justify"
>This is some sample text<fo:leader
            leader-pattern="dots"
            leader-pattern-width="1em"
            leader-alignment="reference-area"
          /></fo:block>
        </fo:table-cell>
        <fo:table-cell>
          <fo:block text-align="end">10</fo:block>
        </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
        <fo:table-cell>
           <fo:block>1.2. </fo:block>
        </fo:table-cell>
        <fo:table-cell>
           <fo:block text-align="start" text-align-last="justify"
>This is some longer sample text<fo:leader
            leader-pattern="dots"
            leader-pattern-width="1em"
            leader-alignment="reference-area"
          /></fo:block>
        </fo:table-cell>
        <fo:table-cell>
          <fo:block text-align="end">200</fo:block>
        </fo:table-cell>
    </fo:table-row>
   </fo:table-body>
 </fo:table>
   
 and the same as a list:
      
 <fo:list-block>
   <fo:list-item>
     <fo:list-item-label end-indent="label-end()">
         <fo:block text-align="end">1.1</fo:block>
     </fo:list-item-label>
     <fo:list-item-body start-indent="body-start()">
         <fo:block
              text-align="start"
              text-align-last="justify"
>This is some sample text<fo:leader
          leader-pattern="dots"
          leader-pattern-width="1em"
          leader-alignment="reference-area"
          />10</fo:block>
     </fo:list-item-body>
   </fo:list-item>
   <fo:list-item>
     <fo:list-item-label end-indent="label-end()">
         <fo:block text-align="end">1.2</fo:block>
     </fo:list-item-label>
     <fo:list-item-body start-indent="body-start()">
         <fo:block
              text-align="start"
              text-align-last="justify"
>This is some longer sample text<fo:leader
          leader-pattern="dots"
          leader-pattern-width="1em"
          leader-alignment="reference-area"
          />200</fo:block>
     </fo:list-item-body>
   </fo:list-item>
 </fo:list-block>

I use XEP 4.4 build 20050926 but there is a difference between the "table
dots" and the "list dots". The table dots are aligned but the list dots
are not.

As a comparison I used fop 0.20.5. FOP produced the same results in tables
and lists. I wonder now, which formatter is correct? Do I miss something
important?

Thanks,
Tom

--- References
[1] http://www.w3.org/TR/xsl/slice6.html#fo_leader
[2] http://www.w3.org/TR/xsl/slice7.html#leader-alignment

-- 
Thomas Schraitle
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Sun Oct 23 05:45:49 2005

This archive was generated by hypermail 2.1.8 : Sun Oct 23 2005 - 05:45:53 PDT