W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2009

p:iteration-size wrong in Calabash

From: Manfred Staudinger <manfred.staudinger@gmail.com>
Date: Thu, 24 Sep 2009 20:43:06 +0200
Message-ID: <a946be3a0909241143n6cebc17dy73be7a94845691d0@mail.gmail.com>
To: xproc-dev <xproc-dev@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 24 September 2009 18:58:55 GMT