Subject: [xsl] Creating mailing labels - 3 columns in a row. From: "Nishad Hassan" <nishad@xxxxxxxxxxx> Date: Mon, 19 Apr 2004 13:14:00 -0400 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Outputing tables on the f, Andreas L. Delmelle | Thread | Re: [xsl] Creating mailing labels -, G. Ken Holman |
Re: [xsl] Converting embedded URLs , David Carlisle | Date | Re: [xsl] how to display " and, Biying Huang |
Month |