Calabash string-replace problem

I must be missing something very simple, but I have tried everything I can think of. Thanks in advance for any assistance.
Here is the problem reduced to a simple pipeline.
<p:declare-step xmlns:p=""
  <p:output port="result"/>
  <p:option name="pn" select="'foo'"/>
  <p:string-replace match="//html:span/text()">
    <p:input port="source">
                <html:div>Part number <html:span style="font-weight:bold;font-size:larger">aaa</html:span> not found.</html:div>
    <p:with-option name="replace" select="$pn"/>
I expect to get:
  <html:div>Part number <html:span style="font-weight:bold;font-size:larger">foo</html:span> not found.</html:div>
(or whatever value has been given for ‘pn’).
But with calabash this either fails to replace the matching node, or causes an Exception (when invoked with the pipeline ‘pn’ option specified).
When run with calabash 1.0.15-94 and no options given on the command line:
                <html:div xmlns:html="">Part number <html:span style="font-weight:bold;font-size:larger"/> not found.</html:div>
--<document boundary>--------------------------------------------------------------------------
With command line pipeline option pn=a12345:
Nov 14, 2013 1:25:19 PM com.xmlcalabash.drivers.Main error
SEVERE: Pipeline failed: java.lang.NullPointerException
                at Source)
                at Source)
                at com.xmlcalabash.runtime.XPipeline.doRun(Unknown Source)
                at Source)
                at Source)
                at Source)
                at com.xmlcalabash.drivers.Main.main(Unknown Source)
This happens on 2 different linux platforms and a Windows platform, all running some version of java 1.6.

Received on Thursday, 14 November 2013 20:31:18 UTC