Thanks for the response. Yes, its definitely a hack because I could not put
a </fo:table-row> inside the <xsl:if> tag. I get an error message saying
The element type "xsl:if" must be terminated by the matching end-tag
"</xsl:if>"

Is there a better way to accomplish what I need to do...i.e. ouputting
portions of table-row tags depending on certain conditions? Thanks.

==============================================
You MUSTN'T enclose XML tags to be written to the output in CDATA
sections. In SAX that will result in calls to characters() instead of
startElement/endElement and therefore your closing fo:table-row tags
don't get recognized as tags. What you did here is a hack. Try to
reformulate that snippet.

On 14.05.2003 07:23:17 Om Narayan wrote:
> Here is a snippet of the code from the XSL
> ===============================
>
> <fo:table-body>
>    <xsl:text
> disable-output-escaping="yes"><![CDATA[<fo:table-row>]]></xsl:text>
>       <xsl:for-each select="customerPF">
>          <xsl:if test="position()!=1">
>             <xsl:if test="(position()-1) mod 3 = 0">
>                <xsl:text
> disable-output-escaping="yes"><![CDATA[</fo:table-row>]]></xsl:text>
>                <xsl:text
> disable-output-escaping="yes"><![CDATA[<fo:table-row>]]></xsl:text>
>            </xsl:if>
>       </xsl:if>
>       <fo:table-cell><fo:block><xsl:value-of
> select="position()"/></fo:block></fo:table-cell>
>      </xsl:for-each>
>   <xsl:text
> disable-output-escaping="yes"><![CDATA[</fo:table-row>]]></xsl:text>
> </fo:table-body>



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to