XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
jake nguyenSubject: XSLT Grouping Attribute
Author: jake nguyen
Date: 10 Jan 2007 05:25 PM
I know this topic is everywhere and I been searching on the internet but I cant seem to find the answer.
I have a xml document that look something like this:

<A>
<B name="something">
<C name="N">
<D name = "x">
</D>
<D name ="x2">
</D>
</C>
<C name="M">
<D name ="x">
</D>
</C>
</B>
<B name ="nothing">
<C name="N">
<D name ="x">
</D>
</C>
</B>
</A>

What I would like for it to return is :
something
x = 2
x2 = 1
nothing 2
x = 1
I tried to use key() and such but it seem I cant find a way to group by B and D. I hope thats not so confusing. THank you if you can help me or point me somewhere.

Posttop
Tony LavinioSubject: XSLT Grouping Attribute
Author: Tony Lavinio
Date: 10 Jan 2007 11:59 PM
General XSLT questions are best answered on the xsl-list run by
Mulberry Technologies.

However, the answer you seek is probably referenced under the
"Complex Tasks" section at http://www.jenitennison.com/xslt/

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.