XPath evaluation - bug in Calabash?

The following XProc pipeline raises an err:XD0023 with Calabash:

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step  xmlns="http://www.w3.org/1999/xhtml" xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
    
    <p:option name="opt" required="true"/>
    <p:output port="result"/>
    
    <p:variable name="var" select="concat($opt,' ','world')"/>
    
    <p:add-attribute match="*" attribute-name="text">
        <p:input port="source">
            <p:inline>
                <message/>
            </p:inline>
        </p:input>
        <p:with-option name="attribute-value" select="$var"/>
    </p:add-attribute>
    
</p:declare-step>


Weirdly enough, it works when I remove the default namespace. I suspect it's a bug, but maybe I'm missing the obvious. Any idea ?

Thanks,
Romain.

Received on Monday, 19 November 2012 15:08:39 UTC