Hi all!

I am having a real brain drain  or brain poop today.
Could you please advise on how to get a table centered
on a page?

Thanks in advance for your help!

~S.E.

Here is a snippet of the style sheet:


<fo:block font-size="5mm" text-align="center"
space-after="2mm">
   <xsl:for-each select="RegInfo">
       <xsl:apply-templates select="table"/>
   </xsl:for-each><!--RegInfo-->
</fo:block>


<xsl:template match="table">
     <fo:block space-before.optimum="7pt"
space-after.optimum="10pt">
         <xsl:apply-templates select="tgroup"/>
     </fo:block>
</xsl:template>

<xsl:template match="tgroup">
     <fo:table>
         <xsl:call-template name="set_columns">
             <xsl:with-param name="count"
select="@cols"/>
             <xsl:with-param name="columns"
select="@cols"/>
         </xsl:call-template>
         <fo:table-header>
             <fo:table-row line-height="12pt"
font-size="11pt" font-weight="bold">
                 <xsl:apply-templates
select="colspec"/>
             </fo:table-row>
         </fo:table-header>
         <xsl:apply-templates select="thead"/>
         <xsl:apply-templates select="tbody"/>
     </fo:table>
</xsl:template>

<xsl:template match="thead">
<fo:table-body>
<xsl:apply-templates select="row"/>
</fo:table-body>
</xsl:template>

<xsl:template match="tbody">
<fo:table-body>
<xsl:apply-templates select="row"/>
</fo:table-body>
</xsl:template>

<xsl:template match="row">
<fo:table-row line-height="11pt" font-size="12pt">
<xsl:apply-templates select="entry"/>
</fo:table-row>
</xsl:template>

<xsl:template match="entry">
<fo:table-cell
border-width="1pt"
padding-start="5pt"
padding-top="3pt"
padding-bottom="3pt"
display-align="after"
border-top-style="solid"
border-bottom-style="solid"
border-right-style="solid"
border-left-style="solid"  text-align="center">
<fo:block>
<xsl:apply-templates />
<!--xsl:value-of select="text()"/-->
</fo:block>
</fo:table-cell>
</xsl:template>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to