Hehehe, good luck with that. At least you won't be bored for awhile ;-).
If I find an easy way to do this, I'll let you know. In the meantime,
I'm afraid we're not missing anything. XSL:FO technology is simply not
advanced enough to accommodate certain features that we would find more
intuitive. Functional language is nice collateral damagewise but
incrementing a counter by having to process recursively is getting old.
You're head will explode if you get into landscape tables set via an
attribute ;-). The only solution available around (no, rotating a table
90 degrees or 270 degrees doesn't work; at the time I was looking,
roughly about a year ago) is to reprocess the whole document recursively
to generate correct XSL:FO page templates based on a portrait or
landscape attribute a table might have.
I'd really rather not think about it actually hehehe ;-).
Regards, Jean-Francois Michaud
Applications Analyst
Office: (206) 766-3116, Cell: (253) 350-7078
"It's not what you know, and it's not even who you know. It's how much
knowledge you give away. Hoarding knowledge diminishes your power
because it diminishes your presence."
David Weinberger, Everything is Miscellaneous
-----Original Message-----
From: G. Ken Holman [mailto:gkholman@CraneSoftwrights.com]
Sent: Tuesday, July 10, 2007 6:54 AM
To: xep-support@renderx.com
Subject: Re: [xep-support] Problem on left align of table on page vs
hanging indent
Fascinatingly to me, I'm coding this very algorithm this week.
There is no dynamic value check available ... I'm having to review the
hierarchical structures and, effectively, recreate the indentation
calculations in order to calculate where I am "supposed" to be.
I have the additional challenge of accommodating differing page widths
for the same content, so where you have a fixed width I have to
parameterize the width based on target outputs.
From what I can tell, this is really the only way to do it ... brute
force recalculation.
I would be relieved if someone could show me where I am missing
something.
. . . . . . . . . . . . Ken
At 2007-07-10 06:13 -0700, Michaud, Jean-Francois wrote:
>Hello guys,
>
>I was wondering if anybody here had implemented a solution where Tables
>are aligned according to what the hanging indent tells us when there is
>a potential for the table overflowing in the right margin or out of the
>page.
>
>I did some research a while back and came to the conclusion at that
>time that it wasn't possible to have both (either we align on the
>hanging indent and if there is a potential for a table to be 6.75
>inches wide then we can have a page overflow or we align on the left
>content margin and if the case occurs where we have 6.75 inch tables,
>we're safely covered but table alignment is not entierly intuitive from
>a visual standpoint).
>
>The best would be to sum up the hanging indent values for me to compare
>against the total width of the table.
>
>Basically, knowing that a page can contain a table that's 6.75 inches
>wide, I would do:
>
>If [6.75 - sum(hierarchical hanging indents) > sum(table column
widths)]
> {
> Align on left of current hanging indent
> }
> else
> {
> Align on left of page to prevent overflow
> }
>
>The problem is that, from what I understand, the hanging indents are
>dynamically calculated at runtime, which means I can't grab the values
>so that I can send them downwards until a table element is reached
>which means I can't implement the above logic which means I'm stuck
>having to align on the left of the page to prevent potential table/page
overflows.
>
>Any help would be greatly appreciated.
>
>Regards
>Jeff Michaud
-- Upcoming hands-on training: UBL Oct 1-3,5, Code lists Oct 2, 2007 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/f/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal ------------------- (*) 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.htmlReceived on Tue Jul 10 08:10:47 2007
This archive was generated by hypermail 2.1.8 : Tue Jul 10 2007 - 08:10:48 PDT