Subject: Re: [xsl] Keeping a running total? (Redo) From: "Colin Adams" <colinpauladams@xxxxxxxxxxx> Date: Wed, 12 Jul 2006 14:46:26 +0100 |
From: didoss@xxxxxxxxxxx Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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> >
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Keeping a running total? , Dimitre Novatchev | Thread | Re: [xsl] Keeping a running total? , Steve |
Re: [xsl] Keeping a running total? , Dimitre Novatchev | Date | Re: [xsl] Keeping a running total? , Steve |
Month |