RE: XSLT 1.0 newbie: sum of selected elements
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/
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format