[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XPath 1 For Loop

Subject: Re: XPath 1 For Loop
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 22 Dec 2008 13:19:30 +0000
Re:  XPath 1 For Loop
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
Kernow: http://kernowforsaxon.sf.net/

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.