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

XSLT Question regarding converting XML to CSV

Subject: XSLT Question regarding converting XML to CSV
From: moshe malaver <malaver_m@xxxxxxxxx>
Date: Mon, 28 Nov 2005 03:58:59 -0800 (PST)
csv colspan
Hi, I need to simulate converting my XML to CSV aswell
as to HTML.
it was decided that rowspan and callspan should be
accounted also in csv in the following way.
XML : 
<ROWS>
<ROW>
<USA>  <rowspan>3</rowspan>
       <colspan>2</colspan>
</USA>
<BOS>  <colspan>2</colspan>
</BOS>
</ROW>
<ROW>
<NY>  <colspan>2</colspan>
</NY>
</ROW>
<ROW>
<LA>  <colspan>2</colspan>
</LA>
</ROW>
<ROW>
<CAN>  <rowspan>2</rowspan>
       <colspan>2</colspan>
</CAN>
<TOR>  <colspan>2</colspan>
</TOR>
</ROW>
<ROW>
<VAN>  <colspan>2</colspan>
</VAN>
</ROW>
</ROWS>

The output CSV file should look something like:

USA,,BOS,,
,,NY,,
,,LA,,
CAN,,TOR
,,VAN

How can I write my XSLT?


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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.