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