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
file:
 
 
<!-- 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:attribute>
       </xsl:if>
       <xsl:if test="@height">
         <xsl:attribute name="height">
    <xsl:value-of select="concat(@height,'px')"/>
 </xsl:attribute>
          </xsl:if>
       <xsl:if test="@class='smalltextwb'">
 <xsl:attribute name="font-family">Verdana, Arial, Helvetica,
sans-serif</xsl:attribute>
         <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>
 <fo:block>
            <xsl:if test="@align">
               <xsl:attribute name="text-align">
                  <xsl:value-of select="@align"/>
               </xsl:attribute>
            </xsl:if>
     <xsl:apply-templates/>
         </fo:block>
      </fo:table-cell>
   </xsl:template>
 
When the pdf is generated, the valign doesnt work when the height is
mentioned
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,
Ron

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT