Loading ...
Sorry, an error occurred while loading the content.

265RE: [XSL-FO] Running total

Expand Messages
  • Wendell Piez
    Mar 6, 2001
      XPath also has a sum() function which is useful in simpler cases.


      At 07:11 AM 3/6/01 -0800, you wrote:

      >-----Original Message-----
      >From: hakan.lindestaf@... [mailto:hakan.lindestaf@...]
      >I'm facing a problem where I have a collection with items which has a
      >number that I would like to sum up in the end of the report like a
      >total, grand total or running total (whatever it's called).
      >Something like this:
      >Total = 0
      >for each item in collection
      > display item
      > Total = Total + item.SubTotal
      >I don't know if anyone replied to this yet, but it seems like a perfect
      >place to apply a recursive summing solution using XSLT.
      >The solution will depend on the shape of your data, so check out the FAQ on
      >I hope that helps
      >To unsubscribe from this group, send an email to:
      >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

      Wendell Piez mailto:wapiez@...
      Mulberry Technologies, Inc. http://www.mulberrytech.com
      17 West Jefferson Street Direct Phone: 301/315-9635
      Suite 207 Phone: 301/315-9631
      Rockville, MD 20850 Fax: 301/315-8285
      Mulberry Technologies: A Consultancy Specializing in SGML and XML
    • Show all 3 messages in this topic