W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2012

c:response

From: Alex Muir <alex.g.muir@gmail.com>
Date: Fri, 30 Nov 2012 19:50:53 -0500
Message-ID: <CAFtPEJYjcWvLkOkQTLnvRbzuSfAZ=aQDr9ncS0SLwxvJbXs4Xg@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
Cc: Christopher Ball <christopher.r.ball@gmail.com>
Hi,

Just wondering about handling the c:response I was trying to save the
output following the p:http-request however nothing gets saved, nor a file
created. The save works normally just not following a p:http-request.

<p:http-request encoding="UTF-8"/>

  <mh:save-output step-name="SaveReponse">
                    <p:with-option name="save" select="$debug"/>
                    <p:with-option name="href"
select="concat($outputDirPath,'debug/','legal-',replace($fileName,'.zip','.xml'))"/>
  </mh:save-output>


Perhaps additional attributes required? I was trying to some others but to
no avail

 <p:wrap-sequence wrapper="c:body"/>
        <p:add-attribute attribute-name="content-type" match="c:body">
            <p:with-option name="attribute-value"
select="'application/xml'"/>
        </p:add-attribute>
        <p:wrap-sequence wrapper="c:request"/>
        <p:add-attribute attribute-name="method" match="c:request">
            <p:with-option name="attribute-value" select="'POST'"/>
        </p:add-attribute>
        <p:add-attribute attribute-name="href" match="c:request">
            <p:with-option name="attribute-value" select="$http-update"/>
        </p:add-attribute>


Thought?
Thanks

-- 
-

Alex G. Muir
Software Engineering Consultant
Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
Love African Kora Music? Take a moment to listen to Gambia's - Amadu
Diabarte & Jali Bakary Konteh www.bafila.bandcamp.com Your support keeps
Africa's griot tradition alive... Cheers!
Received on Saturday, 1 December 2012 00:51:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 1 December 2012 00:51:21 GMT