Hi,
I have an xmls in the following form
<ADDRESSES count="5">
<ADDRESS>
<STREET>421 VULCAN</STREET>
<CITY>BUFFALO</CITY>
<STATE>NY</STATE>
<ZIP>14207</ZIP>
</ADDRESS>
...
...
</ADDRESSES>
I want to transform this to a table with 3 columns in a row.
(information from each <ADDRESS> node goes to one cell). how can
I achieve this?
Here is my xsl which generates a table with only one column.
<table border="0" width="804" cellspacing="0">
<xsl:for-each select="ADDRESS" >
<tr>
<td height="96" width="267" class="MLFont">
<xsl:value-of select="STREET" />
<br/>
<xsl:value-of select="CITY" />
<xsl:text
disable-output-escaping="yes">, </xsl:text>
<xsl:value-of select="STATE" />
<xsl:text
disable-output-escaping="yes"> </xsl:text>
<xsl:value-of select="ZIP" />
</td>
</tr>
</xsl:for-each>
</table>
My Question: Is it possible to generate a <tr> and </tr> element only
if, it is a third element.
Thanks in advance.
Nishad