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

Grouping repeating elements

Subject: Grouping repeating elements
From: Till Jensen <till_jensen@xxxxxxxxx>
Date: Wed, 11 Jul 2001 00:31:14 -0700 (PDT)
 Grouping repeating elements
hello

I'm wondering if it's possible to group reapeating
elements to a category. I tried some of the earlier
posted solutions but couldn't solve this problem. I
think, this could be solved with a <xsl:key
...>-construction, but because I'm new to xml/xsl I
couldn't figure it out.
Any help would be appreciated.

thanks
till


initial.xml

<persons>

  <name>smith</name>
  <firstname>john</firstname>
  <age>28</age>

 <name>henderson</name>
  <firstname>chris</firstname>
  <age>68</age>

 <name>phil</name>
 <firstname>harrison</firstname>

 <name>alan</name>
  <firstname>nilsen</firstname>
  <age>28</age>

</persons>


target xml

<persons>

  <person>
  <name>smith</name>
  <firstname>john</firstname>
  <age>28</age>
  </person>

  <person>
  <name>henderson</name>
  <firstname>chris</firstname>
  <age>68</age>
  </person>

  <person>
  <name>phil</name>
  <firstname>harrison</firstname>
  </person>

  <person>
  <name>alan</name>
  <firstname>nilsen</firstname>
  <age>28</age>
  </person>

</persons>

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

 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.