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

generating xml from xml

Subject: generating xml from xml
From: "Murali Korrapati" <murali.korrapati@xxxxxxxxx>
Date: Mon, 10 Nov 2003 10:31:02 -0500
generating xml from xml
Hi,
 I have a situation where I have to apply xsl on some xml and generate slightly different xml. I hope you people can help me. 

this is my xml :

<Data Timestamp="2003-11-05 21:00:07">
	<Fields>
		<_ fn="Level1" id="F0"/>
		<_ fn="Level2" id="F1"/>
		<_ fn="Level3" id="F2"/>
		<_ fn="TradeDate" id="F3"/>
		<_ fn="TradeId" id="F4"/>
		<_ fn="User" id="F5"/>
	</Fields>
	<Trades>
		<Trade>
			<F0/>
			<F1/>
		</Trade>
		<Trade>
			<F0/>
			<F1>Entry</F1>
			<F2/>
		</Trade>
		<Trade>
			<F0>Mid</F0>
			<F1/>
			<F2/>
			<F3/>
			<F4>126</F4>
		</Trade>
	</Trades>
</Data>

and I am trying to generate :


<Data Timestamp="2003-11-05 21:00:07">
	<Trades>
		<Trade>
			<Level1/>
			<Level2/>
		</Trade>
		<Trade>
			<Level1/>
			<Level2>Entry</Level2>
			<Level3/>
		</Trade>
		<Trade>
			<Level1>Mid</Level1>
			<Level2/>
			<Level3/>
			<TradeDate/>
			<TradeId>126</TradeId>
		</Trade>
	</Trades>
</Data>

and my limitation is, the parser I can use should be MSXML3.0 or less. 

Any kind of help will be appreciated.

~Mur




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.