- From: Florent Georges <fgeorges@fgeorges.org>
- Date: Thu, 5 Feb 2009 17:16:54 +0100
- 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"><exist:result
xmlns:exist="http://exist.sourceforge.net/NS/exist" exist:hits="1"
exist:start="1" exist:count="1">
        <exist:value exist:type="xs:string">Hello,
world!</exist:value>
    </exist:result></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