|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: get the sum of a sequence of numbers
That does not seem to work in this situation. Do I need to define the data type of the sequence? <xsl:template mode="mb" match="*[contains(@language, 'multi-byte')]"> <xsl:value-of select="count(tokenize(lower-case(.),'(\s|[,.!:;]|[$][n][b][s][p][;])+')[string(.)])"/> </xsl:template> <xsl:variable name="mb"> <xsl:apply-templates mode="mb"/> </xsl:variable> <xsl:variable name="mbt" select="sum(for $n in number($mb) return number($n))"/> Karen
|
Back To School Sale!Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop. 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
|






