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

Subject: XPath 1 For Loop
From: "peter verhaar" <peter.verhaar1@xxxxxxxxx>
Date: Mon, 22 Dec 2008 14:13:24 +0100
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!

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