xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjohn P. Villedo" <bvill...@chpii.com>
Subject RE: tables question
Date Mon, 15 Mar 2004 02:17:58 GMT
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


Mime
View raw message