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 "Benjohn P. Villedo" <bv...@chpii.com> on 2004/03/13 05:32:22 UTC
tables question
hi all,
Good Day!!!
i was wondering if anyone could teach me the easiest way to output
3 to 4 tables that are horizontally aligned with each other... hmm am
so lost in this XSL-FO thingy though i am able to print tables but
they are in vertical alignment.... if possible it would be like
______ ______ ______ ______
|table 1| |table 2| |table 3| |table 4|
appreciate any help out there... all the best!!!
pal,
benjohn
Re: tables question
Posted by "Benjohn P. Villedo" <bv...@chpii.com>.
hi all,
Good Day!!!
thanks for giving me that bright idea i was able to achieve what i
wanted... hmm... i shouldn't have looked at at block-container in the
first place it made me all the more confused hehehe :-) here is what
i did though....
using the existing xsl-fo "table" tag i omitted the <p></p> of the table
cell in the xml file thus giving me this
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<table>
<tgroup cols="3">
<colspec colname="col1" colwidth="2in"/>
<colspec colname="col2" colwidth="2in"/>
<colspec colname="col3" colwidth="2in"/>
<tbody>
<row>
<entry colnum="1" valign="top"> </entry>
<entry colnum="2" valign="top"> </entry>
<entry colnum="3" valign="top"> </entry>
</row>
</tbody>
</tgroup>
</table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
then inserted this table inside each column
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<block_table>
<tgroup cols="1">
<colspec colname="col1" colwidth="2in"/>
<tbody>
<row>
<entry colnum="1" valign="top"><p>test</p></entry>
</row>
</tbody>
</tgroup>
</block_table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
which now looked like this
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<table>
<tgroup cols="3">
<colspec colname="col1" colwidth="2in"/>
<colspec colname="col2" colwidth="2in"/>
<colspec colname="col3" colwidth="2in"/>
<tbody>
<row>
<entry colnum="1" valign="top">
<block_table>
<tgroup cols="1">
<colspec colname="col1" colwidth="2in"/>
<tbody>
<row>
<entry colnum="1" valign="top"><p>test row 1</p></entry>
</row>
<row>
<entry colnum="1" valign="top"><p>test row 2</p></entry>
</row>
<row>
<entry colnum="1" valign="top"><p>test row 3</p></entry>
</row>
</tbody>
</tgroup>
</block_table>
</entry>
<entry colnum="2" valign="top">
<block_table>
<tgroup cols="1">
<colspec colname="col1" colwidth="2in"/>
<tbody>
<row>
<entry colnum="1" valign="top"><p>test 2</p></entry>
</row>
</tbody>
</tgroup>
</block_table>
</entry>
<entry colnum="3" valign="top">
<block_table>
<tgroup cols="1">
<colspec colname="col1" colwidth="2in"/>
<tbody>
<row>
<entry colnum="1" valign="top"><p>test 3</p></entry>
</row>
</tbody>
</tgroup>
</block_table>
</entry>
</row>
</tbody>
</tgroup>
</table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
this one worked :-) thanks once more for the patience in teaching
me this technique... all the best!!!
pal,
benjohn
On 15 Mar 2004 at 4:04, J.Pietschmann wrote:
> Benjohn P. Villedo wrote:
> > i came across this property tag
> > <fo:table absolute-position="absolute" left="1in" top="2in">
> > and tried to implement it however the tables still don't get
> > horizontally aligned with each other
>
> Absolut positioning isn't implemented for tables.
> Use another blind table and put your for tables in it.
>
> J.Pietschmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: tables question
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Benjohn P. Villedo wrote:
> i came across this property tag
> <fo:table absolute-position="absolute" left="1in" top="2in">
> and tried to implement it however the tables still don't get
> horizontally aligned with each other
Absolut positioning isn't implemented for tables.
Use another blind table and put your for tables in it.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: tables question
Posted by "Benjohn P. Villedo" <bv...@chpii.com>.
hi there all,
Good Day!!!
i came across this property tag
<fo:table absolute-position="absolute" left="1in" top="2in">
and tried to implement it however the tables still don't get
horizontally aligned with each other
on the .xsl file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<xsl:template match="table">
<fo:table width="2in"
table-layout="fixed"
absolute-position="absolute"
left="1in"
top="2in">
<xsl:apply-templates/>
</fo:table>
</xsl:template>
<xsl:template match="table2">
<fo:table width="2in"
table-layout="fixed"
absolute-position="absolute"
left="3.5in"
top="2in">
<xsl:apply-templates/>
</fo:table>
</xsl:template>
<xsl:template match="table3">
<fo:table width="2in"
table-layout="fixed"
absolute-position="absolute"
left="6in"
top="2in">
<xsl:apply-templates/>
</fo:table>
</xsl:template>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
now on the .xml file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<block_table>
<tgroup cols="1">
<colspec colname="col1" colwidth="2in"/>
<tbody>
<row>
<entry colnum="1" valign="top"><p>test </p></entry>
</row>
</tbody>
</tgroup>
</table>
<block_table2>
<tgroup cols="1">
<colspec colname="col1" colwidth="2in"/>
<tbody>
<row>
<entry colnum="1" valign="top"><p>test 2 </p></entry>
</row>
</tbody>
</tgroup>
</table>
<block_table3>
<tgroup cols="1">
<colspec colname="col1" colwidth="2in"/>
<tbody>
<row>
<entry colnum="1" valign="top"><p>test 3</p></entry>
</row>
</tbody>
</tgroup>
</table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
however, instead the output becomes horizontally aligned, they turn
out to become still vertically aligned... hmm i thought i had the
solution already... hope to hear again from you all thanks... all the
best!!!
pal,
benjohn
On 13 Mar 2004 at 15:06, Andreas L. Delmelle wrote:
> > -----Original Message-----
> > From: Benjohn P. Villedo [mailto:bvilledo@chpii.com]
> > >
> > > i was wondering if anyone could teach me the easiest way to
> > output 3 to 4 tables that are
> > > horizontally aligned with each other... hmm am so lost in this
> > XSL-FO thingy though i am able to
> > > print tables but they are in vertical alignment.... if possible
> > it would be like
> > >
> > > ______ ______ ______ ______
> > > |table 1| |table 2| |table 3| |table 4|
> > >
>
> Hi,
>
> Can you create a phantom table for this with 4 columns? Each of the columns
> contains one of the above specified tables...
>
>
> Hope this helps!
>
> Cheers,
>
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: tables question
Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Benjohn P. Villedo [mailto:bvilledo@chpii.com]
> >
> > i was wondering if anyone could teach me the easiest way to
> output 3 to 4 tables that are
> > horizontally aligned with each other... hmm am so lost in this
> XSL-FO thingy though i am able to
> > print tables but they are in vertical alignment.... if possible
> it would be like
> >
> > ______ ______ ______ ______
> > |table 1| |table 2| |table 3| |table 4|
> >
Hi,
Can you create a phantom table for this with 4 columns? Each of the columns
contains one of the above specified tables...
Hope this helps!
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: tables question
Posted by "Benjohn P. Villedo" <bv...@chpii.com>.
i forgot to mention the process of conversion its
XML -> XSL <-> FOP -> PDF
thanks in advance...
- same
> hi all,
>
> Good Day!!!
>
> i was wondering if anyone could teach me the easiest way to output 3 to 4 tables that are
> horizontally aligned with each other... hmm am so lost in this XSL-FO thingy though i am able to
> print tables but they are in vertical alignment.... if possible it would be like
>
> ______ ______ ______ ______
> |table 1| |table 2| |table 3| |table 4|
>
> appreciate any help out there... all the best!!!
>
> pal,
> benjohn
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org