[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Creating mailing labels - 3 columns in a row.

Subject: Creating mailing labels - 3 columns in a row.
From: "Nishad Hassan" <nishad@xxxxxxxxxxx>
Date: Mon, 19 Apr 2004 13:14:00 -0400
nishad
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.