cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Schmidt <>
Subject Re: conditional </tr><tr> generation ???
Date Tue, 20 Jun 2000 13:38:21 GMT
I will try this one,
I actually thought about it, but was not quite informed about how to use 
so that the nested tags won't be tags for the parser, but will be tags in 
the html file

a funny thing is that when I do the logically incorrect

    <xsl:if test="not(position() mod 4)">
       <tr> </tr>

instead of the logically (at least in my way) correct

    <xsl:if test="not(position() mod 4)">
       </tr> <tr>

it will work.

although it will generate wrong html code, but the wrong html code will be 
displayed correctly in both IE and NS


At 15:50 20.06.00 +0300, you wrote:
>Just had a problem like this, did a dirty, xml-rule-violating hack for it :)
>      <xsl:for-each select="item">
>       <xsl:if test="position() mod 2 = 1">
>        <xsl:text disable-output-escaping="yes"><![CDATA[<tr>]]></xsl:text>
>       </xsl:if>
>     ...

View raw message