p:iteration-size wrong in Calabash

The p:iteration-size function gives 1 instead of 3 for Calabash 0.9.14
with the testcase below. Calumat 1.0.9 returns 3.

Regards,
Manfred

Test:
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step name="myPipeline"
	xmlns:cx="http://xmlcalabash.com/ns/extensions"
	xmlns:c="http://www.w3.org/ns/xproc-step"
	xmlns:p="http://www.w3.org/ns/xproc">
	<p:input port='parameters' kind='parameter' primary='true'/>
	<p:output port="result" primary="true" sequence="true"/>
	<p:declare-step type="cx:message">
		<p:input port="source"/>
		<p:output port="result"/>
		<p:option name="message" required="true"/>
	</p:declare-step>
	<p:identity>
		<p:input port="source">
			<p:inline>
<c:directory xml:base="file:/J:/any/">
	<c:directory name="test1"/>
	<c:directory name="test2"/>
	<c:directory name="test3"/>
</c:directory>
			</p:inline>
		</p:input>
	</p:identity>
	<p:for-each name="level-1">
		<p:iteration-source select="*/c:directory"/>
		<p:output port="result"/>
<cx:message><p:with-option name="message"
select="concat(p:iteration-size(), ' ', p:iteration-position(), ' ',
*/@name)"/></cx:message>
		<p:identity/>
	</p:for-each>
</p:declare-step>

Received on Thursday, 24 September 2009 18:58:53 UTC