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

From: Dan Ochs <dan.ochs@gmail.com>
Date: Tue Sep 04 2007 - 16:40:04 PDT

Maybe this is due to your annotation, but in the XSL have you tried
text-align="{$string}" ? If not, are you using a fixed-width font?
Do you have an example of what you want the output to look like as a
pdf or text we can look at?

dan

Dan Ochs
Principal Consultant, Wrycan Inc.
http://www.wrycan.com

On 9/4/07, Angela Williams <Angela.Williams@the401kcompany.com> wrote:
> 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
>
-------------------
(*) 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 17:11:16 2007

This archive was generated by hypermail 2.1.8 : Tue Sep 04 2007 - 17:11:17 PDT