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

Re: Re: Keeping a running total?

Subject: Re: Re: Keeping a running total?
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 11 Jul 2006 16:55:14 +0100
output gadgets
How about:

<xsl:for-each select="document('factories.xml')//factory">
   <xsl:when test="count(preceding-sibling::factory/@widget) > $limit">
     <!-- output gadgets -->
              <td><xsl:value-of select="@name" /></td>
              <td><xsl:value-of select="$gadgets" /></td>
     <!-- output widgets -->
              <td><xsl:value-of select="@name" /></td>
              <td><xsl:value-of select="@widgets" /></td>

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

On 7/11/06, Steve <subsume@xxxxxxxxx> wrote:
Any other takers?

I'd have to have to resort to some hack if I can do this with XSL.


On 7/10/06, Steve <subsume@xxxxxxxxx> wrote:
> Problem:  I need to make a table of the output required of 4 factories
> next month.
>                   Widgets    Gadgets
> Factory A     2
> Factory B     3
> Factory C                       4
> Factory D                       1
> Widget quota = 5
> Gadget quota = 5

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.