[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: XPath 1 For Loop
From: "peter verhaar" <peter.verhaar1@xxxxxxxxx>
Date: Mon, 22 Dec 2008 14:23:35 +0100
> You are far, far better off changing Xalan to Saxon...

Yes, but that's not always an option (e.g. vendor support only xalan
at the moment)

Does someone have an idea how to get this working in XPath 1 without For-loop?

<xsl:variable name="totalNumber" select="sum(for $a in $inputSet
return number(replace($a,',', '.')))"/>

Thanks

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member