xsl-list
[Top] [All Lists]

Re: [xsl] XPath 1 For Loop

2008-12-22 08:19:53
You are far, far better off changing Xalan to Saxon...


2008/12/22 peter verhaar <peter(_dot_)verhaar1(_at_)gmail(_dot_)com>:
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!

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>