40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
|
|
||
|
<!--
|
||
|
|
||
|
Post an archive request
|
||
|
|
||
|
-->
|
||
|
|
||
|
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms"
|
||
|
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:exist="http://exist.sourceforge.net/NS/exist" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary">
|
||
|
|
||
|
<p:processor name="oxf:pipeline">
|
||
|
<p:input name="config" href="data-access.xpl"/>
|
||
|
<p:input name="data">
|
||
|
<config>
|
||
|
<relpath>queue.xml</relpath>
|
||
|
<operation>write</operation>
|
||
|
<type>xquery</type>
|
||
|
</config>
|
||
|
</p:input>
|
||
|
<p:input name="param">
|
||
|
<xquery><![CDATA[
|
||
|
declare namespace util = "http://exist-db.org/xquery/util";
|
||
|
|
||
|
for $q in /queue return
|
||
|
update
|
||
|
insert <action uuid="{util:uuid()}" type="archive-set" url="http://dyomedea.com"/>
|
||
|
into $q
|
||
|
|
||
|
]]></xquery>
|
||
|
</p:input>
|
||
|
<p:output name="data" id="response" debug="response"/>
|
||
|
</p:processor>
|
||
|
|
||
|
<p:processor name="oxf:null-serializer">
|
||
|
<p:input name="data" href="#response"/>
|
||
|
</p:processor>
|
||
|
|
||
|
|
||
|
</p:config>
|