Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to center a table at the page in XSLT file

Status
Not open for further replies.

vladk

Programmer
May 1, 2001
991
0
0
US
Hi,
I am not sure to center this table:

Code:
<fo:table text-align="center" border-color="black" border-width="0.25px" border-style="solid" margin="0.1in" table-layout="auto">
<fo:table-column  column-width="12pt" />
...
 <fo:table-body>
        <fo:table-row>

          <fo:table-cell  border-style="solid" border-color="black" border-width="0.25px"  background-color="powderblue" text-align="center" display-align="center">
            <fo:block font-size="8pt" font-family="Calibri" color="black" font-weight="normal" >
              <xsl:value-of select="MyGroup/MyField/@Label" />
            </fo:block>
          </fo:table-cell>
...
        </fo:table-row>
        <xsl:apply-templates  select="MyGroup" />

      </fo:table-body>

    </fo:table>

  <xsl:template  match="MyGroup">
   
    <fo:table-row  border-end-style="groove">
      <fo:table-cell>
        <fo:block  font-size="8pt" font-family="Calibri" color="black" font-weight="normal" >
          <xsl:value-of select="MyField" />
        </fo:block>
      </fo:table-cell>
...
    </fo:table-row>
      
  </xsl:template>

I tried some advices, but it didn't work..

Thank you


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top