Re: p:iteration-size wrong in Calabash

As I did not receive any response on this post and the problem is
still in Calabash 0.9.15, I followed the lead of  Florent Georges and
submitted
      http://code.google.com/p/xmlcalabash/issues/detail?id=86
for the issue manager.

Regards,
Manfred

On 24/09/2009, Manfred Staudinger <manfred.staudinger@gmail.com> wrote:
> 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 Wednesday, 7 October 2009 18:51:48 UTC