Re: [xsl] XPath 1 For Loop

Subject: Re: [xsl] XPath 1 For Loop
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 22 Dec 2008 13:19:30 +0000
You are far, far better off changing Xalan to Saxon...


2008/12/22 peter verhaar <peter.verhaar1@xxxxxxxxx>:
> Hello,
>
> This line works fine in Saxon 9:
>
> <xsl:variable name="totalNumber" select="sum(for $a in $inputSet
> return number(replace($a,',', '.')))"/>
>
> But with Xalan 2.7 it start to complain:
>
> SystemId Unknown; Line #34; Column #132; Expected ,, but found: $
>
> I found out that For-loop is new in XPath 2.
>
> How can I change this to XPath 1 so it works with Xalan 2.7?
>
> Thank you!
>
>



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread