You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by cf...@kcp.com on 2005/04/14 19:52:46 UTC
Can tables be nested within one another...
I have a difficult table presentation to create and nesting tables within
each other (like in HTML) would cure the layout prolems I am having. I
wish to nest a table within the table-header. I have tried but FOP keeps
blowing up. If I can't do this then it will mean using spans. Since I am
generating the columns dynamically through XSLT, this poses another problem
as I don't know ahead of time (except by performing a node count troughout
the XML document) what ny actual column count is. Spans are not a pretty
solution, but nesting tables is easy... If it will work. I'll keep
plugging away until I hear definitively.
Thanks,
Curtis Fisher
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Can tables be nested within one another...
Posted by cf...@kcp.com.
Thanks, you nailed it. I had the table within a cell element. Operator
error...
Curtis Fisher
The Web Maestro
<the.webmaestro@g
mail.com> To
fop-users@xmlgraphics.apache.org
04/14/2005 01:05 cc
PM
Subject
Re: Can tables be nested within one
Please respond to another...
fop-users@xmlgrap
hics.apache.org
On Apr 14, 2005, at 10:52 AM, cfisher@kcp.com wrote:
> I have a difficult table presentation to create and nesting tables
> within
> each other (like in HTML) would cure the layout prolems I am having. I
> wish to nest a table within the table-header. I have tried but FOP
> keeps
> blowing up. If I can't do this then it will mean using spans. Since
> I am
> generating the columns dynamically through XSLT, this poses another
> problem
> as I don't know ahead of time (except by performing a node count
> troughout
> the XML document) what ny actual column count is. Spans are not a
> pretty
> solution, but nesting tables is easy... If it will work. I'll keep
> plugging away until I hear definitively.
>
> Thanks,
>
> Curtis Fisher
If you send us a small snippet of your it'll help. Send us just enough
to give us an idea of what you're doing, although you should test it by
running it through FOP to make certain it has the same problem.
One thing to remember, is that all table-cell elements must have
<fo:block>yata yata</fo:block> as a child element. In addition, they
musts also include fo:table-column, and all the normal stuff that's
required.
Web Maestro Clay
--
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Can tables be nested within one another...
Posted by JB...@s-s-t.com.
No worries. I'm enough of a control freak to not rely on automatic layout
of anything, even in systems that let me do it.
Besides, I'm making plenty fine documents with FOP as it is, so anything
more is just a bonus anyway.
Jay Bryant
Bryant Communication Services
(presently consulting at Syngergistic Solution Technologies)
"J.Pietschmann" <j3...@yahoo.de>
04/15/2005 02:03 PM
Please respond to
fop-users@xmlgraphics.apache.org
To
fop-users@xmlgraphics.apache.org
cc
Subject
Re: Can tables be nested within one another...
JBryant@s-s-t.com wrote:
> fo:table-column being optional is yet more reason to look forward to the
> new version. Ah, spring, when we await new software growth....
Automatic table layout is unlikely to happen soon. It is
a *hard* problem, and usually involves backtracking.
Note that "fast table reflow" was one of the top three
design goals of the gecko HTML rendering engine, and it
took a lot of manpower to get it right.
Also, I have no real good idea what specific goals a "good"
automatic table layout actually implies. Only two immediately
come to mind:
1. A column should be at least as wide as the area minimal width
return by the child areas
2. The columns should be as balanced as possible.
With automatic hyphenation and downscaling of images, there is not
much which enforces a minimal column width, i.e. there are quite
a few cases where goal 1 is not much of a help :-(
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Can tables be nested within one another...
Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
>
> JBryant@s-s-t.com wrote:
> > fo:table-column being optional is yet more reason
> > to look forward to the new version.
>
> Automatic table layout is unlikely to happen soon. It is
> a *hard* problem, and usually involves backtracking.
All agreed on the hard problem of auto-layout, but...
Just for the record:
I don't think 'optional table-columns' and 'automatic table-layout'
necessarily come down to the same thing. IIRC, the Rec. --as ultimately does
CSS[*]-- also allows the possibility of not using any columns, but
specifying fixed or percentage widths on the cells in the first table-row.
Even then, it is still permitted to set width="auto" on some of them, but
the balancing of the remaining space is based solely upon the first row.
Greetz,
Andreas
[*] http://www.w3.org/TR/REC-CSS2/tables.html#width-layout
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Can tables be nested within one another...
Posted by "J.Pietschmann" <j3...@yahoo.de>.
JBryant@s-s-t.com wrote:
> fo:table-column being optional is yet more reason to look forward to the
> new version. Ah, spring, when we await new software growth....
Automatic table layout is unlikely to happen soon. It is
a *hard* problem, and usually involves backtracking.
Note that "fast table reflow" was one of the top three
design goals of the gecko HTML rendering engine, and it
took a lot of manpower to get it right.
Also, I have no real good idea what specific goals a "good"
automatic table layout actually implies. Only two immediately
come to mind:
1. A column should be at least as wide as the area minimal width
return by the child areas
2. The columns should be as balanced as possible.
With automatic hyphenation and downscaling of images, there is not
much which enforces a minimal column width, i.e. there are quite
a few cases where goal 1 is not much of a help :-(
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Can tables be nested within one another...
Posted by JB...@s-s-t.com.
Not enough caffeine....
My bad. I was actually thinking of something else (an element wthin each
cell). I DO use fo:table-column ALL the time. And the present FOP
definitely goes BOOM without it.
fo:table-column being optional is yet more reason to look forward to the
new version. Ah, spring, when we await new software growth....
;-)
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)
The Web Maestro <th...@gmail.com>
04/14/2005 03:30 PM
Please respond to
fop-users@xmlgraphics.apache.org
To
fop-users@xmlgraphics.apache.org
cc
Subject
Re: Can tables be nested within one another...
The spec might not require it, but I believe FOP does... (at least
until FOP 1.0 is released...)
On Apr 14, 2005, at 11:14 AM, JBryant@s-s-t.com wrote:
>> In addition, they musts also include fo:table-column,
>> and all the normal stuff that's required.
>
> Just FYI: The spec says table-column is optional (it has the 0-or-more
> marker on it). I don't think I've ever used fo:table-column, and my
> tables
> work.
>
> Jay Bryant
Web Maestro Clay
--
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Can tables be nested within one another...
Posted by The Web Maestro <th...@gmail.com>.
The spec might not require it, but I believe FOP does... (at least
until FOP 1.0 is released...)
On Apr 14, 2005, at 11:14 AM, JBryant@s-s-t.com wrote:
>> In addition, they musts also include fo:table-column,
>> and all the normal stuff that's required.
>
> Just FYI: The spec says table-column is optional (it has the 0-or-more
> marker on it). I don't think I've ever used fo:table-column, and my
> tables
> work.
>
> Jay Bryant
Web Maestro Clay
--
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Can tables be nested within one another...
Posted by JB...@s-s-t.com.
> In addition, they musts also include fo:table-column,
> and all the normal stuff that's required.
Just FYI: The spec says table-column is optional (it has the 0-or-more
marker on it). I don't think I've ever used fo:table-column, and my tables
work.
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Can tables be nested within one another...
Posted by The Web Maestro <th...@gmail.com>.
On Apr 14, 2005, at 10:52 AM, cfisher@kcp.com wrote:
> I have a difficult table presentation to create and nesting tables
> within
> each other (like in HTML) would cure the layout prolems I am having. I
> wish to nest a table within the table-header. I have tried but FOP
> keeps
> blowing up. If I can't do this then it will mean using spans. Since
> I am
> generating the columns dynamically through XSLT, this poses another
> problem
> as I don't know ahead of time (except by performing a node count
> troughout
> the XML document) what ny actual column count is. Spans are not a
> pretty
> solution, but nesting tables is easy... If it will work. I'll keep
> plugging away until I hear definitively.
>
> Thanks,
>
> Curtis Fisher
If you send us a small snippet of your it'll help. Send us just enough
to give us an idea of what you're doing, although you should test it by
running it through FOP to make certain it has the same problem.
One thing to remember, is that all table-cell elements must have
<fo:block>yata yata</fo:block> as a child element. In addition, they
musts also include fo:table-column, and all the normal stuff that's
required.
Web Maestro Clay
--
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Can tables be nested within one another...
Posted by Luke Shannon <ls...@futurebrand.com>.
I have some nested tables, not a problem so far. I was able to get some of
the layout I wanted with nested fo-blocks with in my table cells. In some
cases I was able to reduce on nested tables in favour of this approach.
Luke
----- Original Message -----
From: <cf...@kcp.com>
To: <fo...@xmlgraphics.apache.org>
Sent: Thursday, April 14, 2005 1:52 PM
Subject: Can tables be nested within one another...
> I have a difficult table presentation to create and nesting tables within
> each other (like in HTML) would cure the layout prolems I am having. I
> wish to nest a table within the table-header. I have tried but FOP keeps
> blowing up. If I can't do this then it will mean using spans. Since I am
> generating the columns dynamically through XSLT, this poses another
problem
> as I don't know ahead of time (except by performing a node count troughout
> the XML document) what ny actual column count is. Spans are not a pretty
> solution, but nesting tables is easy... If it will work. I'll keep
> plugging away until I hear definitively.
>
> Thanks,
>
> Curtis Fisher
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Can tables be nested within one another...
Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: cfisher@kcp.com [mailto:cfisher@kcp.com]
>
Hi,
> I have a difficult table presentation to create and nesting tables within
> each other (like in HTML) would cure the layout prolems I am having. I
> wish to nest a table within the table-header. I have tried but FOP keeps
> blowing up.
I see no immediate problems with that, but...
Could you be a bit more precise? What kind of error are you getting when FOP
'blows up'?
Greetz,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org