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

xml to csv

Subject: xml to csv
From: "Serena Phan" <serena.phan@xxxxxxxxxxx>
Date: Mon, 21 Nov 2005 08:10:49 +0000
 xml to csv
I'm just wondering if it is possible to get the above output by using xslt. I can get solve the problem in which only one of the children of the root node has a subtree.

Thanks.


Input:


<?xml version="1.0" encoding="UTF-8"?>
<root>
	<a>a</a>
	<b>
		<bb>bb1</bb>
		<bb>bb2</bb>
		<bb>bb3</bb>
		<bb>bb4</bb>
	</b>
	<c>
		<cc>
			<ccc>ccc1</ccc>
		</cc>
		<cc>
			<ccc>ccc2</ccc>
		</cc>
	</c>
	<d>
		<dd>dd1</dd>
		<dd>dd2</dd>
	</d>
</root>

Output:

"a",	"bb1",	"ccc1",	"dd1"
"a",	"bb2",	"ccc1",	"dd1"
"a",	"bb3",	"ccc1",	"dd1"
"a",	"bb4",	"ccc1",	"dd1"
"a",	"bb1",	"ccc2",	"dd1"
"a",	"bb2",	"ccc2",	"dd1"
"a",	"bb3",	"ccc2",	"dd1"
"a",	"bb4",	"ccc2",	"dd1"
"a",	"bb1",	"ccc1",	"dd2"
"a",	"bb2",	"ccc1",	"dd2"
"a",	"bb3",	"ccc1",	"dd2"
"a",	"bb4",	"ccc1",	"dd2"
"a",	"bb1",	"ccc2",	"dd2"
"a",	"bb2",	"ccc2",	"dd2"
"a",	"bb3",	"ccc2",	"dd2"
"a",	"bb4",	"ccc2",	"dd2"


xsl-list@xxxxxxxxxxxxxxxxxxxxxx


_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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.