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

Creating unique groups

Subject: Creating unique groups
From: Dave Roe <david_roe@xxxxxxx>
Date: Fri, 3 Dec 2004 18:06:57 -0800
unique group names
I have this XML representing 2 groups (spread across 4 group elements):

<root>

	<group name="group1">
		<entry name="entry1" />
		<entry name="entry2" />
	</group>

	<group name="group1">
		<entry name="entry3" />
	</group>

	<group name="group2">
		<entry name="entry4" />
		<entry name="entry5" />
	</group>

	<group name="group2">
		<entry name="entry6" />
	</group>

</root>

What would be the best approach to turn it into the following output, where the name of the group is used as the identifier of what should be a unique group element?

<root>

	<group name="group1">
		<entry name="entry1" />
		<entry name="entry2" />
		<entry name="entry3" />
	</group>

	<group name="group2">
		<entry name="entry4" />
		<entry name="entry5" />
		<entry name="entry6" />
	</group>

</root>

Right now, I just need someone to point me in the right direction to get me started.

Thanks,
/dave

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.