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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to