Calabash or me?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The following works in both an old Calabash (v 0.9.15) (remove version=) and my
built-from-sources 0.9.19a

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
 
 <p:output port="result"/>
 
 <p:identity name="foo">
  <p:input port="source">
   <p:inline>
    <r>
     <a>one</a>
     <a>two</a>
    </r>
   </p:inline>
  </p:input>
 </p:identity>
 <p:for-each>
  <p:variable name="curr" select="p:iteration-position()"/>
  <p:variable name="v2" select="$curr - 1"/>
  <p:identity/>
 </p:for-each>
</p:declare-step>

Rename v2 to prev and it breaks in my v0.9.19a (but not in 0.9.15),
with the following error:

05-Apr-2010 16:40:43 com.xmlcalabash.util.DefaultXProcMessageListener
error
SEVERE: XD0023:Undeclared variable in XPath expression: $curr
05-Apr-2010 16:40:43 com.xmlcalabash.drivers.Main error
SEVERE: Pipeline failed: err:XD0023: Undeclared variable in XPath
expression: $curr  It is a dynamic error if an XPath expression is
encountered which cannot be evaluated (because it is syntactically
incorrect, contains references to unbound variables or unknown
functions, or for any other reason).

How can this be?

ht
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFLughakjnJixAXWBoRAiQrAJ9J31ts6iZRy1oM0gzl2BhTieWtwACfae8C
IYVmUVhyMGqyXjWRN342oXo=
=Lkn6
-----END PGP SIGNATURE-----

Received on Monday, 5 April 2010 15:57:54 UTC