Re: [xsl] Re: Keeping a running total?

Subject: Re: [xsl] Re: Keeping a running total?
From: Steve <subsume@xxxxxxxxx>
Date: Tue, 11 Jul 2006 14:09:18 -0400
On 7/11/06, andrew welch <andrew.j.welch@xxxxxxxxx> wrote:
<xsl:when test="count(preceding-sibling::factory/@widget) > $limit">

Seems like this only if the prior one had exceeded the quota.


Failing that, come up with a concise input XML and give an example of
the required output XML.  Your original question was a bit wordy...

Um...sure...


<xml>
   <factory x="A" capacity="2">
   <factory x="B" capacity="1">
   <factory x="C" capacity="2">
   <factory x="D" capacity="1">
   <factory x="E" capacity="2">
</xml>

Current Thread