|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sum function
Shankaran,
Depending on your processor you could do someting like this
<xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:saxon="http://icl.com/saxon"
xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<xsl:template match="/storsys">
<xsl:variable name="tots">
<xsl:apply-templates select="storval" mode="mul" />
</xsl:variable>
<!--xsl:value-of select="sum(saxon:node-set($tots)/storval/@tot)" /-->
<xsl:value-of select="sum(msxsl:node-set($tots)/storval/@tot)" />
</xsl:template>
<xsl:template match="storval" mode="mul">
<storval tot="{noofblocks * blocksize}" />
</xsl:template>
</xsl:stylesheet>
Uncomment <!--xsl:value-of select="sum(saxon:... if you are using saxon
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








