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

Re: Keeping a running total? (Redo)

Subject: Re: Keeping a running total? (Redo)
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Wed, 12 Jul 2006 14:46:26 +0100
running total
Since it's a parameter, this can already be done.

From: didoss@xxxxxxxxxxx
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Keeping a running total? (Redo)
Date: Wed, 12 Jul 2006 12:49:27 +0000

Extra credit -

1) Could you make it even more flexible,...provide the product quotas ("prunQuatas") as another input file, so that it vary by cycle, without have to change the transform file,..."this quarter we have this list of available factories with associated capacities, and this other list of products that we need to produce for the quarter, so how do we go about distributing the load." Maybe the product input file provides a priority and quota, and gets converted to the "prunQuatas" param block that is below?


> <xsl:stylesheet version="2.0"
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>  xmlns:xs="http://www.w3.org/2001/XMLSchema"
>  xmlns:f="http://fxsl.sf.net/"
>  exclude-result-prefixes="f xs"
> >
>  <xsl:import href="../f/func-scanl.xsl"/>
>  <xsl:import href="../f/func-Operators.xsl"/>
>  <xsl:import href="../f/func-map.xsl"/>
>
>  <!-- To be run against: ..\data\testFunc-Scanl2.xml -->
>
>  <xsl:output omit-xml-declaration="yes" indent="yes"/>
>
>  <xsl:param name="prunQuatas" as="element()+">
>   <q name="widgets" min="1" max="8"/>
>   <q name="gadgets" min="9" max="13"/>
>   <q name="excess" min="14" max="999999999"/>
>  </xsl:param>
>

_________________________________________________________________
Windows Live Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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