Calabash 0.9.4 and p:http-request; response content conversion

  Hi,

  When I execute the following pipeline with Calabash 0.9.4:

    <p:pipeline xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:c="http://www.w3.org/ns/xproc-step"
                xmlns:e="http://exist.sourceforge.net/NS/exist">

       <p:http-request>
          <p:input port="source">
             <p:inline>
                <c:request href="http://localhost:8080/exist/rest/db"
                           method="post" username=".." password="..">
                   <c:body content-type="application/xml">
                      <e:query>
                         <e:text>concat('Hello, ', 'world!')</e:text>
                         <e:properties>
                            <e:property name="indent" value="yes"/>
                         </e:properties>
                      </e:query>
                   </c:body>
                </c:request>
             </p:inline>
          </p:input>
       </p:http-request>

    </p:pipeline>

I get the following result:

    <c:body xmlns:c="http://www.w3.org/ns/xproc-step"
content-type="text/xml; charset=UTF-8">&lt;exist:result
xmlns:exist="http://exist.sourceforge.net/NS/exist" exist:hits="1"
exist:start="1" exist:count="1"&gt;
        &lt;exist:value exist:type="xs:string"&gt;Hello,
world!&lt;/exist:value&gt;
    &lt;/exist:result&gt;</c:body>

  First, I think that §7.1.10.3 tells to parse the result (see
http://www.w3.org/TR/xproc/#c.response: "Otherwise (the detailed
attribute is not specified [...]".)  And even if the body had not
to be parsed, the step should return a c:response, not a c:body.

  Am I wrong?

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

Received on Thursday, 5 February 2009 16:22:56 UTC