[xep-support] RE: Calculate mid-point of column using inherited-property-value

From: Angela Williams <Angela.Williams@the401kcompany.com>
Date: Tue Sep 04 2007 - 14:57:41 PDT

Since text-align="$string" does not work in XEP, I am trying to simulate
it with brute force.

I need to align the table column centered on the decimal. This only
works if I can give the midpoint of the column in a specific value for
leader-length and leader-pattern-width, as shown in the second cell
below.

At the point my table-cell block value is being written, I don't have
access to the value set for column-width, and the width may not be set
to a specific value (proportional).

How do I calculate the midpoint value when I don't have access to a
specific width? 'inherited-property-value(column-width) div 2' does not
work...

<fo:table table-layout="fixed" text-align="center" width="100%">
   <fo:table-column column-number="1"
column-width="proportional-column-width(1)"/>
   <fo:table-column column-number="2" column-width="1in"/>
   <fo:table-body>
     <fo:table-row>
       <fo:table-cell>
         <fo:block>$123,456<fo:leader
                          leader-pattern="use-content"
 
leader-length="inherited-property-value(column-width) div 2"
 
leader-pattern-width="inherited-property-value(column-width) div
2">.78</fo:leader>
         </fo:block>
       </fo:table-cell>
       <fo:table-cell>
         <fo:block>$123,456<fo:leader
                          leader-pattern="use-content"
                          leader-length=".5in"
                          leader-pattern-width=".5in">.78</fo:leader>
         </fo:block>
       </fo:table-cell>
     </fo:table-row>
   </fo:table-body>
</fo:table>

Thanks!
Angela

-------------------
(*) 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 Tue Sep 4 15:40:51 2007

This archive was generated by hypermail 2.1.8 : Tue Sep 04 2007 - 15:40:52 PDT