Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

XSL - Need help in grouping data

  Asked By: Harry    Date: Mar 04    Category: Java    Views: 919
  

Can grouping be done using XSL? Specifically, I have data which is
pulled by month, state. I need to add up the total for each month,
and the total for each state, in XSL style sheet.
For example,

Jan Maine 5
Jan Vermont 8
Feb New York 12
Mar Ohio 3
Mar Nevada 4
Mar Texas 8
Mar Maine 6

The results should be Jan - 13, Feb - 12, Mar - 15 and Maine - 11,
Vermont - 8, etc

How do I use style sheets to accomplish this grouping?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Isabella Campbell     Answered On: Mar 04

Yes grouping  is possible.

A good source of information for all things xsl  is the XSL FAQ at:
http://www.dpawson.co.uk/xsl/xslfaq.html

There is a whole section on grouping where you can probably find the
answer to your question at:
http://www.dpawson.co.uk/xsl/sect2/N4486.html

If you can't find the answer there, I suggest you try to post your
question to the XSL mailing list at:
www.mulberrytech.com/xsl/xsl-list/index.html

That's probably a better place to ask XSL questions than this Java group.

 
Didn't find what you were looking for? Find more on XSL - Need help in grouping data Or get search suggestion and latest updates.




Tagged: