W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2004

Help! - height disable valign operation (XSL FO)

From: Ron Diment <ron.diment@mapfusion.com>
Date: Wed, 24 Nov 2004 13:06:39 -0500
Message-Id: <200411241806.iAOI6dU23433@qube3.mapfusion.com>
To: <www-xsl-fo@w3.org>


Hi there,
I'm using the FOP from xml.apache.org/fop tool to convert from HTML
to PDF.
I'm reading the height and valign attributes of a column-cell (TD) in
the XSL
<!-- HTML table tag <td> -->
<xsl:template match="td">
  <fo:table-cell xsl:use-attribute-sets="table.data.td">
      <xsl:if test="@valign">
         <xsl:attribute name="display-align">
          <xsl:value-of select="@valign"/>
       <xsl:if test="@height">
         <xsl:attribute name="height">
    <xsl:value-of select="concat(@height,'px')"/>
       <xsl:if test="@class='smalltextwb'">
 <xsl:attribute name="font-family">Verdana, Arial, Helvetica,
         <xsl:attribute name="font-size">10px</xsl:attribute>
  <xsl:attribute name="font-weight">normal</xsl:attribute>
  <xsl:attribute name="color">#FFFFFF</xsl:attribute>
            <xsl:if test="@align">
               <xsl:attribute name="text-align">
                  <xsl:value-of select="@align"/>
When the pdf is generated, the valign doesnt work when the height is
on the HTML:
<td height="100" valign="center"> --> Doesnt work
<td valign="center"> --> works
Does anyone has any idea why the height property prevents the aligning
of the column cell on the PDF?
Any help will be great,

Received on Wednesday, 24 November 2004 22:06:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:29 UTC