- From: Erik Siegel <mailing@xatapult.nl>
- Date: Thu, 28 May 2015 16:25:21 +0200
- To: "'Norman Walsh'" <ndw@nwalsh.com>, "'XProc Dev'" <xproc-dev@w3.org>
Thanks! -----Oorspronkelijk bericht----- Van: Norman Walsh [mailto:ndw@nwalsh.com] Verzonden: donderdag 28 mei 2015 16:08 Aan: XProc Dev Onderwerp: Re: Calabash to retrieve zip files? 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:25:41 UTC