Since it's a parameter, this can already be done.
From: didoss(_at_)comcast(_dot_)net
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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
--~------------------------------------------------------------------
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>
--~--