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

Re: Reordering a complex hierarchical structure

Subject: Re: Reordering a complex hierarchical structure
From: Ian Wootten <I.M.Wootten@xxxxxxxxxxxxxxxx>
Date: Thu, 31 Aug 2006 09:51:10 +0100
 Re: Reordering a complex hierarchical structure
Ok, so I've managed to get as far as a structure as (I requested) and
you have detailed, but rather than a list such as:

<service>
  <name>somename</name>
  <id>1</id>
  <metric name="andanothermetric">value3</metric>
  <metric name="andanothermetric">value6</metric>
  <metric name="anothermetric">value2</metric>
  <metric name="anothermetric">value5</metric>
  <metric name="somemetric">value1</metric>
  <metric name="somemetric">value4</metric>
</service>

I'd prefer it if I could get it so similarly named metrics are grouped together, so:

<service>
	<name>somename</name>
	<id>1</id>
	<metric name="somemetric">
		<value>value1</value>
		<value>value4</value>
	</metric>
	<metric name="anothermetric">
		<value>value2</value>
		<value>value5</value>
	</metric>
	<metric name="andanothermetric">
		<value>value3</value>
		<value>value6</value>
	</metric>
</service>

Whats returned by the for each is every occurrence of metric, for a different service, as I understand. How can I group similarly named metrics together?

Cheers,

Ian

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.