Developer forum

Forum » Templates » New row in xslt

New row in xslt

Per Ljung
Reply
Hi!

I have list of products in a table, I want to make a new row every third product. I know how to do this using ordinary
<br />
, but not tables.

In ordinary html this would be easy, just by adding
</tr><tr>

but this does not work in xslt because the number of start tags would not be the same as end tags and the xslt
processor would create an error.

Any ideas?

Best regards,
P


Replies

 
Sten Hougaard
Reply
 Hi Per,

This is just a basic soloution where I am ignoring all the alarm bells telling me that you are on to a not-perfect soloution :-) (I never do that! ;-))


<xsl:text disable-output-escaping="yes"><![CDATA[</tr><tr>]]></xsl:text>
/Sten

 

You must be logged in to post in the forum