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

Rearrange element in hierarchy structure using xsl

Subject: Rearrange element in hierarchy structure using xsl
From: Arulraj <p_arulraj@xxxxxxxxx>
Date: Sat, 12 Nov 2005 01:27:42 -0800 (PST)
xsl rearrange elements
Hi,

I have following XML structure(sample)
---------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<office>
	<ordered-list style-name="L1">
		<list-item>
			<h style-name="P1" level="1">
				<s/>Application:Die Testapplikation</h>
		</list-item>
	</ordered-list>
	<p>ProcessGroup</p>
	<p> Process:FSRenta</p>
	<p> Process:Test</p>
	<p>ProcessGroup</p>
	<p> Process:XXX</p>
	<p> Process:YYYY</p>
	<ordered-list style-name="L1">
		<list-item>
			<h style-name="P1" level="1">
				<s/>Application:CS2 web</h>
		</list-item>
	</ordered-list>
	<p>ProcessGroup</p>
	<p> Process:NNNN</p>
	<p> Process:MMMM</p>
</office>

My expected output is:
----------------------
<Application name="The Testapplication">
<ProcessGroup>
   <Process name="FSRenta">	
   <Process name="Test">
</ProcessGroup>
<ProcessGroup>
   <Process name="XXX">	
   <Process name="YYYY">
</ProcessGroup>
</Application>
<Application name="CS2 web">
<ProcessGroup>
   <Process name="NNNN">	
   <Process name="MMMM">
</ProcessGroup>
</Application>

Can you give me some help to create this hierarchy
using xsl?

Thanks
Raj



	
		
__________________________________ 
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.