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

Alexei Gagarinov agagarinov at renderx.com
Thu Sep 6 14:17:55 PDT 2007


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



More information about the Xep-support mailing list