Table within a table

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Table within a table

Radhika Sambamurti
Table within a table

Hi,
I am trying to create a small table (2 columns) within a cell of a larger table.
I am attaching the code snippet below:

Basically, in the Table Cell, of the table I want to insert the smaller table, I am applying the statistics template.
Is this correct? I am not getting any output for the third cell.

Thanks,
Radhika

-----------------------------------------------------------------------------------------------------------------------

<xsl:template match="header">
               
                        <fo:table-row text-align="left">
                                <fo:table-cell>
                                <fo:block><fo:external-graphic src="file:Logo.jpg" line-height="30pt"/></fo:block>
                                </fo:table-cell>
                                <fo:table-cell text-align="center">
                                <fo:block font-size="15pt" line-height="20pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="title"/></fo:block>

                                <fo:block font-size="12pt" line-height="17pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="mthYr"/></fo:block>

                                </fo:table-cell>
                                <fo:table-cell>
                               
                                        <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
                                       
                                        <fo:table width="5.5cm">
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-body>
                                                        <xsl:apply-templates select="statistics"/>
                                                </fo:table-body>
                                        </fo:table>
                                </fo:table-cell>
                        </fo:table-row>

</xsl:template>

<xsl:template match="statistics">
       
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="10pt" text-align="left">Avgerage Qty:</fo:block>
                </fo:table-cell>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="avgQty"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="left">Total Qty:</fo:block>
                </fo:table-cell>
       
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="totQty"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="left">Total Value:</fo:block>
                </fo:table-cell>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="totVal"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
       
</xsl:template>

Radhika Sambamurti
Pipeline Trading Systems
[hidden email]


Reply | Threaded
Open this post in threaded view
|

RE: Table within a table

Partridge, Michael
Message
You need to put your inner table within a block, like so:
 

<xsl:template match="header">
               
                        <fo:table-row text-align="left">
                                <fo:table-cell>
                                <fo:block><fo:external-graphic src="file:Logo.jpg" line-height="30pt"/></fo:block>
                                </fo:table-cell>
                                <fo:table-cell text-align="center">
                                <fo:block font-size="15pt" line-height="20pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="title"/></fo:block>

                                <fo:block font-size="12pt" line-height="17pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="mthYr"/></fo:block>

                                </fo:table-cell>
                                <fo:table-cell> 

                  <fo:block> <!-- change 1 -->


                                        <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
                                       
                                        <fo:table width="5.5cm">
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-body>
                                                        <xsl:apply-templates select="statistics"/>
                                                </fo:table-body>
                                        </fo:table>

 
                  </fo:block> <!-- change 2 -->


                                </fo:table-cell>
                        </fo:table-row>

</xsl:template>

-----Original Message-----
From: Radhika Sambamurti [mailto:[hidden email]]
Sent: Monday, June 06, 2005 3:13 PM
To: [hidden email]
Subject: Table within a table

Hi,
I am trying to create a small table (2 columns) within a cell of a larger table.
I am attaching the code snippet below:

Basically, in the Table Cell, of the table I want to insert the smaller table, I am applying the statistics template.
Is this correct? I am not getting any output for the third cell.

Thanks,
Radhika

-----------------------------------------------------------------------------------------------------------------------

<xsl:template match="header">
               
                        <fo:table-row text-align="left">
                                <fo:table-cell>
                                <fo:block><fo:external-graphic src="file:Logo.jpg" line-height="30pt"/></fo:block>
                                </fo:table-cell>
                                <fo:table-cell text-align="center">
                                <fo:block font-size="15pt" line-height="20pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="title"/></fo:block>

                                <fo:block font-size="12pt" line-height="17pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="mthYr"/></fo:block>

                                </fo:table-cell>
                                <fo:table-cell>
                               
                                        <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
                                       
                                        <fo:table width="5.5cm">
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-body>
                                                        <xsl:apply-templates select="statistics"/>
                                                </fo:table-body>
                                        </fo:table>
                                </fo:table-cell>
                        </fo:table-row>

</xsl:template>

<xsl:template match="statistics">
       
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="10pt" text-align="left">Avgerage Qty:</fo:block>
                </fo:table-cell>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="avgQty"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="left">Total Qty:</fo:block>
                </fo:table-cell>
       
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="totQty"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="left">Total Value:</fo:block>
                </fo:table-cell>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="totVal"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
       
</xsl:template>

Radhika Sambamurti
Pipeline Trading Systems
[hidden email]



CONFIDENTIALITY NOTICE: This electronic message transmission is intended only for the person or the entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. If you have received this transmission, but are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this e-mail in error, please contact SHPS at [hidden email] and destroy the original message and all copies.

Reply | Threaded
Open this post in threaded view
|

RE: Table within a table

Radhika Sambamurti
In reply to this post by Radhika Sambamurti
Message
Hi,
I tried putting the table in <fo:block>, still no success. Code snippet as below:
 
<fo:table-cell>
     <fo:block>
     <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
     <fo:table width="5.5cm" table-layout="fixed">
      <fo:table-column column-width="2.5cm"/>
      <fo:table-column column-width="2.5cm"/>
      <fo:table-body>
       <xsl:apply-templates select="statistics"/>
      </fo:table-body>
     </fo:table>
     </fo:block>
    </fo:table-cell>
    
Thanks,
Radhika
 
 

Radhika Sambamurti
Pipeline Trading Systems
[hidden email]
212-370-8343

 


From: Partridge, Michael [mailto:[hidden email]]
Sent: Monday, June 06, 2005 3:23 PM
To: [hidden email]
Subject: RE: Table within a table

You need to put your inner table within a block, like so:
 

<xsl:template match="header">
               
                        <fo:table-row text-align="left">
                                <fo:table-cell>
                                <fo:block><fo:external-graphic src="file:Logo.jpg" line-height="30pt"/></fo:block>
                                </fo:table-cell>
                                <fo:table-cell text-align="center">
                                <fo:block font-size="15pt" line-height="20pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="title"/></fo:block>

                                <fo:block font-size="12pt" line-height="17pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="mthYr"/></fo:block>

                                </fo:table-cell>
                                <fo:table-cell> 

                  <fo:block> <!-- change 1 -->


                                        <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
                                       
                                        <fo:table width="5.5cm">
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-body>
                                                        <xsl:apply-templates select="statistics"/>
                                                </fo:table-body>
                                        </fo:table>

 
                  </fo:block> <!-- change 2 -->


                                </fo:table-cell>
                        </fo:table-row>

</xsl:template>

-----Original Message-----
From: Radhika Sambamurti [mailto:[hidden email]]
Sent: Monday, June 06, 2005 3:13 PM
To: [hidden email]
Subject: Table within a table

Hi,
I am trying to create a small table (2 columns) within a cell of a larger table.
I am attaching the code snippet below:

Basically, in the Table Cell, of the table I want to insert the smaller table, I am applying the statistics template.
Is this correct? I am not getting any output for the third cell.

Thanks,
Radhika

-----------------------------------------------------------------------------------------------------------------------

<xsl:template match="header">
               
                        <fo:table-row text-align="left">
                                <fo:table-cell>
                                <fo:block><fo:external-graphic src="file:Logo.jpg" line-height="30pt"/></fo:block>
                                </fo:table-cell>
                                <fo:table-cell text-align="center">
                                <fo:block font-size="15pt" line-height="20pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="title"/></fo:block>

                                <fo:block font-size="12pt" line-height="17pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="mthYr"/></fo:block>

                                </fo:table-cell>
                                <fo:table-cell>
                               
                                        <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
                                       
                                        <fo:table width="5.5cm">
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-body>
                                                        <xsl:apply-templates select="statistics"/>
                                                </fo:table-body>
                                        </fo:table>
                                </fo:table-cell>
                        </fo:table-row>

</xsl:template>

<xsl:template match="statistics">
       
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="10pt" text-align="left">Avgerage Qty:</fo:block>
                </fo:table-cell>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="avgQty"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="left">Total Qty:</fo:block>
                </fo:table-cell>
       
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="totQty"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="left">Total Value:</fo:block>
                </fo:table-cell>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="totVal"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
       
</xsl:template>

Radhika Sambamurti
Pipeline Trading Systems
[hidden email]



CONFIDENTIALITY NOTICE: This electronic message transmission is intended only for the person or the entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. If you have received this transmission, but are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this e-mail in error, please contact SHPS at [hidden email] and destroy the original message and all copies.

Reply | Threaded
Open this post in threaded view
|

RE: Table within a table

Radhika Sambamurti
In reply to this post by Radhika Sambamurti
Message
Hi,
I played with it a little and figured out that, instead of referencing the template "statistics",
just insert the code for the table there (see below):
 
<fo:table-cell>
    <fo:block>
     <!-- START CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
     <fo:table width="5.5cm" table-layout="fixed">
      <fo:table-column column-width="2.5cm"/>
      <fo:table-column column-width="2.5cm"/>
      <fo:table-body>
       <fo:table-row text-align="left">
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="10pt" >Avgerage Qty:</fo:block>
        </fo:table-cell>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" ><xsl:value-of select="avgQty"/></fo:block>
        </fo:table-cell>
       </fo:table-row>
       <fo:table-row>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" >Total Qty:</fo:block>
        </fo:table-cell>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" ><xsl:value-of select="totQty"/></fo:block>
        </fo:table-cell>
       </fo:table-row>
       <fo:table-row>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" >Total Value:</fo:block>
        </fo:table-cell>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" ><xsl:value-of select="totVal"/></fo:block>
        </fo:table-cell>
       </fo:table-row>
      </fo:table-body>
     </fo:table>
     <!-- END CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
    </fo:block>
    </fo:table-cell>
 
Just in case some one else has this question....
 
Thanks,
Radhika
 

Radhika Sambamurti
Pipeline Trading Systems
[hidden email]
212-370-8343

 


From: Radhika Sambamurti [mailto:[hidden email]]
Sent: Monday, June 06, 2005 3:40 PM
To: [hidden email]
Subject: RE: Table within a table

Hi,
I tried putting the table in <fo:block>, still no success. Code snippet as below:
 
<fo:table-cell>
     <fo:block>
     <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
     <fo:table width="5.5cm" table-layout="fixed">
      <fo:table-column column-width="2.5cm"/>
      <fo:table-column column-width="2.5cm"/>
      <fo:table-body>
       <xsl:apply-templates select="statistics"/>
      </fo:table-body>
     </fo:table>
     </fo:block>
    </fo:table-cell>
    
Thanks,
Radhika
 
 

Radhika Sambamurti
Pipeline Trading Systems
[hidden email]
212-370-8343

 


From: Partridge, Michael [mailto:[hidden email]]
Sent: Monday, June 06, 2005 3:23 PM
To: [hidden email]
Subject: RE: Table within a table

You need to put your inner table within a block, like so:
 

<xsl:template match="header">
               
                        <fo:table-row text-align="left">
                                <fo:table-cell>
                                <fo:block><fo:external-graphic src="file:Logo.jpg" line-height="30pt"/></fo:block>
                                </fo:table-cell>
                                <fo:table-cell text-align="center">
                                <fo:block font-size="15pt" line-height="20pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="title"/></fo:block>

                                <fo:block font-size="12pt" line-height="17pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="mthYr"/></fo:block>

                                </fo:table-cell>
                                <fo:table-cell> 

                  <fo:block> <!-- change 1 -->


                                        <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
                                       
                                        <fo:table width="5.5cm">
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-body>
                                                        <xsl:apply-templates select="statistics"/>
                                                </fo:table-body>
                                        </fo:table>

 
                  </fo:block> <!-- change 2 -->


                                </fo:table-cell>
                        </fo:table-row>

</xsl:template>

-----Original Message-----
From: Radhika Sambamurti [mailto:[hidden email]]
Sent: Monday, June 06, 2005 3:13 PM
To: [hidden email]
Subject: Table within a table

Hi,
I am trying to create a small table (2 columns) within a cell of a larger table.
I am attaching the code snippet below:

Basically, in the Table Cell, of the table I want to insert the smaller table, I am applying the statistics template.
Is this correct? I am not getting any output for the third cell.

Thanks,
Radhika

-----------------------------------------------------------------------------------------------------------------------

<xsl:template match="header">
               
                        <fo:table-row text-align="left">
                                <fo:table-cell>
                                <fo:block><fo:external-graphic src="file:Logo.jpg" line-height="30pt"/></fo:block>
                                </fo:table-cell>
                                <fo:table-cell text-align="center">
                                <fo:block font-size="15pt" line-height="20pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="title"/></fo:block>

                                <fo:block font-size="12pt" line-height="17pt" font-family="Helvetica" font-weight="bold"><xsl:value-of select="mthYr"/></fo:block>

                                </fo:table-cell>
                                <fo:table-cell>
                               
                                        <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
                                       
                                        <fo:table width="5.5cm">
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-column column-width="2.5cm"/>
                                                <fo:table-body>
                                                        <xsl:apply-templates select="statistics"/>
                                                </fo:table-body>
                                        </fo:table>
                                </fo:table-cell>
                        </fo:table-row>

</xsl:template>

<xsl:template match="statistics">
       
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="10pt" text-align="left">Avgerage Qty:</fo:block>
                </fo:table-cell>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="avgQty"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="left">Total Qty:</fo:block>
                </fo:table-cell>
       
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="totQty"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="left">Total Value:</fo:block>
                </fo:table-cell>
                <fo:table-cell>
                <fo:block font-size="10pt" line-height="12pt" text-align="Right"><xsl:value-of select="totVal"/></fo:block>

                </fo:table-cell>
        </fo:table-row>
       
</xsl:template>

Radhika Sambamurti
Pipeline Trading Systems
[hidden email]



CONFIDENTIALITY NOTICE: This electronic message transmission is intended only for the person or the entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. If you have received this transmission, but are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this e-mail in error, please contact SHPS at [hidden email] and destroy the original message and all copies.

Reply | Threaded
Open this post in threaded view
|

RE: Table within a table

Louis.Masters
In reply to this post by Radhika Sambamurti

You are doing a select on the statistics template - is that what you really
are intending?  The following snippet uses a "procedural-like" call to nest
the entire table structure:

<fo:table-cell>
      <fo:block>
            <xsl:call-template name = "statsSubTable"/>  <!--notice this is
a 'call-template' instead of an 'apply-templates'-->
      </fo:block>
</fo:table-cell>


<xsl:template name="statsSubTable">   <!--notice this is a 'name' instead
of a 'match'-->
      <fo:table width="100%" table-layout="fixed">  <!--my pref is to set
it to 100% so it fills in 'better'-->
      <fo:table-column column-width="2.5cm"/>
      <fo:table-column column-width="2.5cm"/>
            <fo:table-body>
                  <fo:table-row text-align="left">
                        <fo:table-cell>
                              <fo:block font-size="10pt" line-height="10pt"
>Avgerage Qty:</fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                              <fo:block font-size="10pt" line-height="12pt"
><xsl:value-of select="avgQty"/></fo:block>
                        </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row>
                        <fo:table-cell>
                              <fo:block font-size="10pt" line-height="12pt"
>Total Qty:</fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                        <fo:block font-size="10pt" line-height="12pt"
><xsl:value-of select="totQty"/></fo:block>
                        </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row>
                        <fo:table-cell>
                              <fo:block font-size="10pt" line-height="12pt"
>Total Value:</fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                              <fo:block font-size="10pt" line-height="12pt"
><xsl:value-of select="totVal"/></fo:block>
                        </fo:table-cell>
                  </fo:table-row>
            </fo:table-body>
      </fo:table>
</xsl:template>

Does this help?

-Lou



|---------+---------------------------------------->
|         |           "Radhika Sambamurti"         |
|         |           <Radhika.Sambamurti@PipelineT|
|         |           rading.com>                  |
|         |                                        |
|         |           06/06/2005 16:57             |
|         |           Please respond to fop-users  |
|         |                                        |
|---------+---------------------------------------->
  >-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                               |
  |        To:      <[hidden email]>                                                                            |
  |        cc:                                                                                                                    |
  |        Subject: RE: Table within a table                                                                                      |
  >-------------------------------------------------------------------------------------------------------------------------------|



Hi,
I played with it a little and figured out that, instead of referencing the
template "statistics",
just insert the code for the table there (see below):

<fo:table-cell>
    <fo:block>
     <!-- START CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE
-->
     <fo:table width="5.5cm" table-layout="fixed">
      <fo:table-column column-width="2.5cm"/>
      <fo:table-column column-width="2.5cm"/>
      <fo:table-body>
       <fo:table-row text-align="left">
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="10pt" >Avgerage
Qty:</fo:block>
        </fo:table-cell>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" ><xsl:value-of
select="avgQty"/></fo:block>
        </fo:table-cell>
       </fo:table-row>
       <fo:table-row>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" >Total
Qty:</fo:block>
        </fo:table-cell>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" ><xsl:value-of
select="totQty"/></fo:block>
        </fo:table-cell>
       </fo:table-row>
       <fo:table-row>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" >Total
Value:</fo:block>
        </fo:table-cell>
        <fo:table-cell>
        <fo:block font-size="10pt" line-height="12pt" ><xsl:value-of
select="totVal"/></fo:block>
        </fo:table-cell>
       </fo:table-row>
      </fo:table-body>
     </fo:table>
     <!-- END CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
    </fo:block>
    </fo:table-cell>

Just in case some one else has this question....

Thanks,
Radhika




Radhika Sambamurti
Pipeline Trading Systems
[hidden email]
212-370-8343




From: Radhika Sambamurti [mailto:[hidden email]]
Sent: Monday, June 06, 2005 3:40 PM
To: [hidden email]
Subject: RE: Table within a table

Hi,
I tried putting the table in <fo:block>, still no success. Code snippet as
below:

<fo:table-cell>
     <fo:block>
     <!-- CREATING A TABLE WITHIN THE LAST CELL OF THE FIRST TABLE -->
     <fo:table width="5.5cm" table-layout="fixed">
      <fo:table-column column-width="2.5cm"/>
      <fo:table-column column-width="2.5cm"/>
      <fo:table-body>
       <xsl:apply-templates select="statistics"/>
      </fo:table-body>
     </fo:table>
     </fo:block>
    </fo:table-cell>

Thanks,
Radhika





Radhika Sambamurti
Pipeline Trading Systems
[hidden email]
212-370-8343




From: Partridge, Michael [mailto:[hidden email]]
Sent: Monday, June 06, 2005 3:23 PM
To: [hidden email]
Subject: RE: Table within a table

You need to put your inner table within a block, like so:



<xsl:template match="header">

                        <fo:table-row text-align="left">
                                <fo:table-cell>
                                <fo:block><fo:external-graphic src="
file:Logo.jpg" line-height="30pt"/></fo:block>
                                </fo:table-cell>
                                <fo:table-cell text-align="center">
                                <fo:block font-size="15pt"
line-height="20pt" font-family="Helvetica" font-weight="bold"><xsl:value-of
select="title"/></fo:block>


                                <fo:block font-size="12pt"
line-height="17pt" font-family="Helvetica" font-weight="bold"><xsl:value-of
select="mthYr"/></fo:block>


                                </fo:table-cell>
                                <fo:table-cell>


                  <fo:block> <!-- change 1 -->



                                        <!-- CREATING A TABLE WITHIN THE
LAST CELL OF THE FIRST TABLE -->

                                        <fo:table width="5.5cm">
                                                <fo:table-column
column-width="2.5cm"/>
                                                <fo:table-column
column-width="2.5cm"/>
                                                <fo:table-body>

<xsl:apply-templates select="statistics"/>
                                                </fo:table-body>
                                        </fo:table>



                  </fo:block> <!-- change 2 -->



                                </fo:table-cell>
                        </fo:table-row>


</xsl:template>


      -----Original Message-----
      From: Radhika Sambamurti
      [mailto:[hidden email]]
      Sent: Monday, June 06, 2005 3:13 PM
      To: [hidden email]
      Subject: Table within a table



      Hi,
      I am trying to create a small table (2 columns) within a cell of a
      larger table.
      I am attaching the code snippet below:


      Basically, in the Table Cell, of the table I want to insert the
      smaller table, I am applying the statistics template.
      Is this correct? I am not getting any output for the third cell.


      Thanks,
      Radhika


      -----------------------------------------------------------------------------------------------------------------------



      <xsl:template match="header">

                              <fo:table-row text-align="left">
                                      <fo:table-cell>
                                      <fo:block><fo:external-graphic src="
      file:Logo.jpg" line-height="30pt"/></fo:block>
                                      </fo:table-cell>
                                      <fo:table-cell text-align="center">
                                      <fo:block font-size="15pt"
      line-height="20pt" font-family="Helvetica"
      font-weight="bold"><xsl:value-of select="title"/></fo:block>


                                      <fo:block font-size="12pt"
      line-height="17pt" font-family="Helvetica"
      font-weight="bold"><xsl:value-of select="mthYr"/></fo:block>


                                      </fo:table-cell>
                                      <fo:table-cell>

                                              <!-- CREATING A TABLE WITHIN
      THE LAST CELL OF THE FIRST TABLE -->

                                              <fo:table width="5.5cm">
                                                      <fo:table-column
      column-width="2.5cm"/>
                                                      <fo:table-column
      column-width="2.5cm"/>
                                                      <fo:table-body>

      <xsl:apply-templates select="statistics"/>
                                                      </fo:table-body>
                                              </fo:table>
                                      </fo:table-cell>
                              </fo:table-row>


      </xsl:template>


      <xsl:template match="statistics">

              <fo:table-row>
                      <fo:table-cell>
                      <fo:block font-size="10pt" line-height="10pt"
      text-align="left">Avgerage Qty:</fo:block>
                      </fo:table-cell>
                      <fo:table-cell>
                      <fo:block font-size="10pt" line-height="12pt"
      text-align="Right"><xsl:value-of select="avgQty"/></fo:block>


                      </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                      <fo:table-cell>
                      <fo:block font-size="10pt" line-height="12pt"
      text-align="left">Total Qty:</fo:block>
                      </fo:table-cell>

                      <fo:table-cell>
                      <fo:block font-size="10pt" line-height="12pt"
      text-align="Right"><xsl:value-of select="totQty"/></fo:block>


                      </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                      <fo:table-cell>
                      <fo:block font-size="10pt" line-height="12pt"
      text-align="left">Total Value:</fo:block>
                      </fo:table-cell>
                      <fo:table-cell>
                      <fo:block font-size="10pt" line-height="12pt"
      text-align="Right"><xsl:value-of select="totVal"/></fo:block>


                      </fo:table-cell>
              </fo:table-row>

      </xsl:template>


      Radhika Sambamurti
      Pipeline Trading Systems
      [hidden email]








CONFIDENTIALITY NOTICE: This electronic message transmission is intended
only for the person or the entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. If you have received this transmission, but are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution or use of the contents of this information is strictly
prohibited. If you have received this e-mail in error, please contact SHPS
at [hidden email] and destroy the original message and all copies.









---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]