xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Brownell" <dbrown...@htaconsulting.com>
Subject faulty number-rows-spanned?
Date Wed, 12 Oct 2005 21:57:39 GMT
Hi there,

I looked back thru to Jan 2004 and couldn't find this question, so I will ask it.

This template match below is meant to print out two rows per student, where the first 2 columns
use number-rows-spanned="2", and the second 2 have two rows.

My problem is that under the very last row of each page, i get an ugly half-row (an extra
blank 2 rows under the columns that use number-rows-spanned="2").  

Yes, surrounded this with a table & body.  It's not an empty student element that's messing
it up.  AntennaHouse draws it correctly, so it must be a FOP row-span issue.

Can anyone please help me?
Thanks
Daniel Brownell



<xsl:template match="student">
  
  <fo:table-row>
    <xsl:attribute name="border-style">solid</xsl:attribute>
    <xsl:attribute name="border-width">1pt</xsl:attribute>


    <fo:table-cell number-rows-spanned="2" text-align="left" border-width="1pt" border-style="solid">
       <fo:block>
         <xsl:value-of select="@lastName"/>
      </fo:block>       
    </fo:table-cell>

    <fo:table-cell number-rows-spanned="2" text-align="left" border-width="1pt" border-style="solid">
       <fo:block>
         <xsl:value-of select="@firstName"/>
      </fo:block>       
    </fo:table-cell>


    <fo:table-cell border-width="1pt" border-style="solid">
       <fo:block/>
    </fo:table-cell>
    <fo:table-cell border-width="1pt" border-style="solid">
       <fo:block/>
    </fo:table-cell>
  </fo:table-row>

  <fo:table-row>
    <xsl:attribute name="border-style">solid</xsl:attribute>
    <xsl:attribute name="border-width">1pt</xsl:attribute>
            
    <fo:table-cell border-width="1pt" border-style="solid">
      <fo:block/>
    </fo:table-cell>
    <fo:table-cell border-width="1pt" border-style="solid">
      <fo:block/>
    </fo:table-cell>

  </fo:table-row>


</xsl:template>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message