[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] sum() over attributes is 0
I'm not having much success using the sum() function over a node set. The following two expressions <xsl:comment> <xsl:text>sum: </xsl:text> <xsl:value-of select="sum(//lc:container[lc:item]/@select)"/> </xsl:comment> <xsl:comment> <xsl:text>list of select attributes: </xsl:text> <xsl:for-each select="//lc:container[lc:item]"> <xsl:value-of select="@select"/> <xsl:text> </xsl:text> </xsl:for-each> </xsl:comment> result in the following output: <!--sum: 0--> <!--list of select attributes: 2 3 1 --> I'm not clear why the result of sum() is 0. Are there any other prerequisites that I'm missing? Thanks again. _____________________________________________________________________________ _______ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC
|
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
|