xsl-list
[Top] [All Lists]

Re: [xsl] Keeping a running total? (Redo)

2006-07-11 12:02:24
The presented source xml file is not too representative because the
total capacity of the first two factories is exactly the widget quota.

What should be the output in case the capacity for factory B was 6?


On 7/11/06, Steve <subsume(_at_)gmail(_dot_)com> wrote:
Previous thread has degenerated into confusion. Let's try again.

----- Source XML
<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" />
  ...etc...
</xml>

$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.

----
Howto?

M.K. Suggested
http://www.biglist.com/lists/xsl-list/archives/200607/msg00191.html
but my question (Howto?) remains.

Thanks,

-Steve

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--