Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > How to aggregate data with XSL ?

Reply
Thread Tools

How to aggregate data with XSL ?

 
 
Guiding5
Guest
Posts: n/a
 
      02-28-2006
Hi group!

How do I aggregate elements based on one of it node's values ?

For example:

Input XML:
<dataset>
<value>
<name>Bob</name>
<desc>Silent</desc>
</value>
<value>
<name>Bob</name>
<desc>Fat</desc>
</value>
<value>
<name>Jay</name>
<desc>Stupid</desc>
</value>
</dataset>

Needed result:
<dataset>
<value>
<name>Bob</name>
<desc>Silent</desc>
<desc>Fat</desc>
</value>
<value>
<name>Jay</name>
<desc>Stupid</desc>
</value>
</dataset>

 
Reply With Quote
 
 
 
 
Dimitre Novatchev
Guest
Posts: n/a
 
      02-28-2006
http://jenitennison.com/xslt/grouping/index.xml


Cheers,
Dimitre Novatchev

"Guiding5" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Hi group!
>
> How do I aggregate elements based on one of it node's values ?
>
> For example:
>
> Input XML:
> <dataset>
> <value>
> <name>Bob</name>
> <desc>Silent</desc>
> </value>
> <value>
> <name>Bob</name>
> <desc>Fat</desc>
> </value>
> <value>
> <name>Jay</name>
> <desc>Stupid</desc>
> </value>
> </dataset>
>
> Needed result:
> <dataset>
> <value>
> <name>Bob</name>
> <desc>Silent</desc>
> <desc>Fat</desc>
> </value>
> <value>
> <name>Jay</name>
> <desc>Stupid</desc>
> </value>
> </dataset>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Copying Aggregate Data Types in C CBFalconer C Programming 46 12-25-2008 10:52 PM
Re: Copying Aggregate Data Types in C Nate Eldredge C Programming 12 12-19-2008 05:01 AM
aggregate operator praveen.rajaretnam@gmail.com VHDL 3 07-12-2005 06:34 PM
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
Quartus VHDL problem with aggregate and type cast rickman VHDL 3 07-15-2003 04:24 AM



Advertisments