This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Is it possible to group by name() ?
- From: "Casadome, Francisco" <Francisco dot Casadome at bowneglobal dot es>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 17 Sep 2002 22:54:30 +0200
- Subject: [xsl] Is it possible to group by name() ?
- Reply-to: xsl-list at lists dot mulberrytech dot com
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