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

Keeping a running total? (Redo)

Subject: Keeping a running total? (Redo)
From: Steve <subsume@xxxxxxxxx>
Date: Tue, 11 Jul 2006 14:26:40 -0400
running total
Previous thread has degenerated into confusion. Let's try again.

----- Source XML
 <factory x="A" capacity = "3" />
 <factory x="B" capacity= "5" />
  <factory x="C" capacity = "3" />
  <factory x="D" capacity = "2" />
  <factory x="E" capacity = "2" />

$Widget_quota = "8"
$Gadget_quota = "5"

----- Goal: an output table like below.

Factory | Widgets | Gadgets | Excess

    A        |   3
    B        |   5
<!--          *Click. Widget Quota has been reached. Switch to gadgets* -->
    C        |                       3
    D        |                       2
<!--          *Click. Omg. Gadget Quota has been reached. Switch to Excess* -->
    E         |                                             etc.
    F         |                                             etc.
    G         |                                             etc.
    H         |                                             etc.


M.K. Suggested
but my question (Howto?) remains.



Current Thread


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.
First Name
Last Name
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.