xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Brownell" <dbrown...@htaconsulting.com>
Subject RE: faulty number-rows-spanned?
Date Thu, 13 Oct 2005 20:40:32 GMT
 

Well, 

 

I don't think you need all this, but here's a small xml sample.  The
students tag just does an apply-templates.

 

<table>

<columns>

<column label="Last Name" width="100"/>

<column label="First Name" width="78"/>

<column label="Monday" subColumnOne="Time" subColumnOneWidth="30"
subColumnTwo="Signature" subColumnTwoWidth="55" width="85"/>

<column label="Tuesday" subColumnOne="Time" subColumnOneWidth="30"
subColumnTwo="Signature" subColumnTwoWidth="55" width="85"/>

</columns>

 

<students>

<student lastName="Blondie" firstName="Alpha"/>

<student lastName="Hendrix" firstName="Jimi"/>

<student lastName="Page" firstName="Jimmy"/>

</students>

</table>

 

-Dan


>Daniel: 
>Excuse my laziness, but could you post some sample XML so I can easily
try this. 
>Thanks, 
>Lou 



 

 

 

> 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