W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2009

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

From: Florent Georges <fgeorges@fgeorges.org>
Date: Thu, 5 Feb 2009 17:16:54 +0100
Message-ID: <ebaca5bf0902050816p21b0de5aj3bb47e88da5e24ff@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>

  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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 5 February 2009 16:22:56 GMT