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

RE: for-each and summing based on group

Subject: RE: for-each and summing based on group
From: "Mark Lundquist" <ml@xxxxxxxxxxxxxx>
Date: Wed, 5 Jan 2005 08:29:40 -0800
dsk trade mark
> From: dmitrik@xxxxxxxxxxxxxx [mailto:dmitrik@xxxxxxxxxxxxxx]
> Sent: Tuesday, January 04, 2005 9:46 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  for-each and summing based on group
>
>
> something like this format- the multiple colums are created by a
> date field which is not displayed here.
> The main question is regarding the subtotals.

I understand, but I think I'm going to show you a solution that is different
than what you have in mind (which I gather is some kind of an xsl:for-each
thing), and so I need to see something like the real source XML (please try
to make it valid... I don't understand your <a> element below, etc.)

>
> <begin>
>
> <trade>
> 	<a>
> 	<step>
> 		<val>23</val>
> 	<step>
>
> </trade>
> <trade>
> 	<a>
> 	<step>
> 		<val>23</val>
> 	<step>
>
>
> </trade>
> <trade>
> 	<a>
> 	<step>
> 		<val>23</val>
> 	<step>
>
>
> </trade>
> <trade>
> 	<b>
> 	<step>
> 		<val>23</val>
> 	<step>
>
> </trade>
> <trade>
> 	<b>
> 	<step>
> 		<val>23</val>
> 	<step>
>
>
> </trade>
>
>
> </begin>
>
> -----Original Message-----
> From: Mark Lundquist <ml@xxxxxxxxxxxxxx>
> Sent: Jan 5, 2005 12:19 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  for-each and summing based on group
>
>
>
> > -----Original Message-----
> > From: dsk [mailto:dmitrik@xxxxxxxxxxxxxx]
> > Sent: Tuesday, January 04, 2005 8:09 PM
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  for-each and summing based on group
> >
> >
> >
> > within a for-each there might be various sets of values which
> produce the
> > following grid, where val is equal to a number
> >
> > a  val val val
> > a  val val val
> > a  val val val
> > b  val val val
> > b  val val val
> > c  val val val
> > c  val val val
> >
> > what is the best way to insert a sum line for the first
> > column a, one for b, and one for c.
> >
> > is a nested for each needed? or checking to see if the
> following value is
> > not equal to the preceding, then then summing?
>
> Hi Dmitri,
>
> What Does Your XML Look Like? (tm) :-)
>
> -- Mark

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.