- From: Norman Walsh <ndw@nwalsh.com>
- Date: Thu, 28 May 2015 09:08:26 -0500
- To: XProc Dev <xproc-dev@w3.org>
- Message-ID: <87twuwdcbp.fsf@nwalsh.com>
Erik Siegel <mailing@xatapult.nl> writes: > Is there anyone that knows a trick to use XProc/Calabash to call a > REST interface that returns a zip file and store that file on disk? <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0" xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:exf="http://exproc.org/standard/functions" exclude-inline-prefixes="cx exf" name="main"> <p:input port="parameters" kind="parameter"/> <p:output port="result"> <p:pipe step="store" port="result"/> </p:output> <p:http-request> <p:input port="source"> <p:inline> <c:request method="GET" href="https://github.com/ndw/xmlcalabash1/releases/download/1.1.3-96/xmlcalabash-1.1.3-96.zip"/> </p:inline> </p:input> </p:http-request> <p:store name="store" href="/tmp/out.zip" cx:decode="true"/> </p:declare-step> Be seeing you, norm -- Norman Walsh Lead Engineer MarkLogic Corporation Phone: +1 512 761 6676 www.marklogic.com
Received on Thursday, 28 May 2015 14:08:58 UTC