xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Louis.Mast...@log-net.com
Subject Re: conditional drawning of table
Date Wed, 17 Mar 2010 14:27:53 GMT
Try:

<xsl:if test="count(/report/listElements/element) &gt; 0" > 
        <xsl:attribute name="border-bottom">whatever</xsl:attribute>
</xsl:if>

-Lou

Red Light <skydelta98@yahoo.com> wrote on 03/17/2010 10:12:13 AM:

> Hi ,
> 
> in my xsl i have a condition:
> 
>     <xsl:choose>
>            <xsl:when test="count(/report/listElements/element) &gt; 0" > 

>                                  i draw a table with a border in the 
bottom
>             </xsl:when>
>                 <xsl:otherwise>
>                                 i draw the same table  but without the 
border
> at the bottom
>                 </xsl:otherwise>
>     </xsl:choose>
> 
> well that's easy ; there is no problem there ; just the table is 
> consequent  and i have 8 table in pdf and don't want to duplicate the 
code.
> 
> anyway to do this in an better way ?
> and thanks

Mime
View raw message