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

From: Alexei Gagarinov <agagarinov@renderx.com>
Date: Thu Sep 06 2007 - 14:17:55 PDT

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@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 Thu Sep 6 14:53:31 2007

This archive was generated by hypermail 2.1.8 : Thu Sep 06 2007 - 14:53:36 PDT