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

Angela Williams Angela.Williams at the401kcompany.com
Thu Sep 6 15:28:06 PDT 2007


Thank you so much for the help.  I was close, but was missing the layout
attributes on the inner table.

What technique do you suggest for right-aligning, after aligning on the
decimal?  I assume I would want the third inner cell to be limited to
the width of the value with the maximum precision (and largest
font-size), but I haven't had luck with that, either.

+-------------+
|    My Column|
+-------------+ 
|     123.123 |
|       1.1234|
|   12345.1   |
|      12.12  |
+-------------+ 


Thanks!
Angela 

-----Original Message-----
From: owner-xep-support at renderx.com
[mailto:owner-xep-support at renderx.com] On Behalf Of Alexei Gagarinov
Sent: Thursday, September 06, 2007 4:18 PM
To: Angela Williams
Subject: Re[2]: [xep-support] RE: Calculate mid-point of column using
inherited-property-value

Hi Angela,

> You would not need to specify the center (.4in) if 
> "inherited-property-value(column-width)" was valid.

The 'inherited-property-value' function does not work with attributes
from the 'table-column' element by its design.

The correct property function for this task is the 'from-table-column'
function.

'from-table-column(column-width)' gives your the desired result for
absolute column widths only, XEP does not support this function for
proportional column widths.

Though it may be considered as a bug in XEP, but this failure with
proportional column widths will save you :)

---
The described layout - centered alignment on a dot - will look poorly
using the proposed design, if table cells have text with different font
properties.

The clearest solution is to wrap each cell into the inner table.

<fo:table-cell>
  <fo:table table-layout="fixed" width="100%">
    <fo:table-column column-width="proportional-column-width(1)"/>
    <fo:table-column column-width="1em"/>
    <fo:table-column column-width="proportional-column-width(1)"/>
    ...
  </fo:table>
</fo:table-cell>

The first inner cell is for a part of text before a dot, the middle cell
is for dot, and the last cell is for a part of text after dot.
The first inner cell should be "end" aligned, the last cell should be
"start" aligned.

The only drawback of this solution is loss in performance.

> Thanks!
> Angela

Best regards,
  Alexei Gagarinov
RenderX
---
www.renderx.net



-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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



More information about the Xep-support mailing list