Title: 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="" href="file:Logo.jpg">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
[EMAIL PROTECTED]


Reply via email to