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

Is it possible to group by name() ?

Subject: Is it possible to group by name() ?
From: "Casadome, Francisco" <Francisco.Casadome@xxxxxxxxxxxxxx>
Date: Tue, 17 Sep 2002 22:54:30 +0200
 Is it possible to group by name() ?
Hi all,

I would appreciate some help on this. I have an XML that looks like this:

<n0>
	<n1>
		<a>text</a>
		<b>text</b>
		<c>text</c>
	</n1>
	<n1>
		<a>text</a>
		<c>text</c>
	</n1>
	<n1>
		<a>text</a>
		<b>text</b>
		<d>text</d>
	</n1>
</n0>

And what I would like to have is a list of the different nodes inside n1
nodes.
In the example above, the result should be: a,b,c,d.

Is it possible to do something like this ?
<xsl:key name="groupbyname" match="/n0/n1/*" use="name()"/>

And then use the muenchian method ? But how ?

Thanks a lot,
Frank
	

 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.