[Home] [By Thread] [By Date] [Recent Entries]
Hello Elise,
could you please reduce the mail size - who should read 23 KB? Mostly it's enough to give a concise part of the code. Your problem with the sum() is really easily to solve, you always hav a key, which selects the wanted elements: <xsl:key name="item-by-id" match="BudgetItemXML" use="BIT_ItemID" /> So you only have to do
<xsl:value-of select="sum(key('item-by-id', 3)/Total)"/>
to sum all 'Total's of the 'BudgetItemXML's with 'BIT_ItemID'=3.I'm to lazy to search for two buttons in the code ;-) But in general you can pass the parameter to group by to the stylesheet and choose the grouping key to use depending on this parameter: <xsl:param name="grouping-by" select="'Task'"/> key(concat('item-by-',$grouping-by), 'thekey') So if you have <xsl:key name="item-by-Task" .../> and <xsl:key name="item-by-Activity" .../> the key used for grouping is chosen depending on the parameter. But I can't see any Task or Activity in your code. Am I blind or did I understand something wrong? Regards, Joerg Elise_Dupont@xxxxxxxxxxxxxx wrote: hi, XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



