xsl-list
[Top] [All Lists]

RE: [xsl] XSLT 1.0 newbie: sum of selected elements

2006-12-11 07:52:29
Is't possible, for this example, elements with @id 
2 or 3 to be selected first and after to be summarized @due 
and/or @init?


Yes, that's what variables are for. 

<xsl:variable name="selectedNodes" select=".... the nodes ..."/>
<xsl:value-of select="sum($selectedNodes/@due)"/>

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>
--~--