[xsl] FO:Leader Pushing Data in seperate table cells

Subject: [xsl] FO:Leader Pushing Data in seperate table cells
From: "Schrooten, Ben" <bschrooten@xxxxxxxxxxxxxxxxx>
Date: Tue, 29 Oct 2002 17:16:47 -0500
Hello All,

I have a table with one row and two columns, in the first column i am
drawing some text and then a fo:leader with as dots, and the second cell
contains some text. Depending on the length of the text in the first column
my fo:leader if pushing or pulling the data in the second cell. I have a
picture of what the output of this looks like at
http://wls.home.mindspring.com/leaders.gif

The XSL looks like this that the leader is in. 


<fo:table table-layout="fixed" width="100mm">
                                            <fo:table-column
column-width="92mm"/>
                                            <fo:table-column
column-width="8mm"/>
                                            <fo:table-body>
                                              <fo:table-row
display-align="after">
                                                <fo:table-cell>
                                                  <fo:block font-size="7pt"
text-align="left">
                                                    <xsl:value-of
select="text"/>
                                                    <fo:leader
leader-alignment="reference-area" leader-pattern="dots"/>
                                                  </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                  <fo:block
wrap-option="no-wrap" text-align="right" font-size="7pt">
                                                    <xsl:value-of
select="lbs_allowed"/> lbs.
                                                  </fo:block>
                                                </fo:table-cell>
                                              </fo:table-row>
                                            </fo:table-body>
                                          </fo:table>

If i remove the <fo:leader> then everything in the right hand cell lines up
perfectly. Its kind of hard to see they are not aligned, i switched fonts
and it looks a little more aligned but still off. 

Thank You. 

Ben

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread