If the only difference is the border, don't put the condition around the table. Use the condition on just the border, with an xsl:variable or xsl:attribute.
________________________________ From: Red Light [mailto:[email protected]] Sent: Wednesday, March 17, 2010 10:12 AM To: [email protected] Subject: conditional drawning of table Hi , in my xsl i have a condition: <xsl:choose> <xsl:when test="count(/report/listElements/element) > 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
