2012-04-12 09:19:46 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
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
|
2012-04-12 12:06:23 +00:00
|
|
|
insert <action priority="0" uuid="{util:uuid()}" type="archive-set" url="http://dyomedea.com"/>
|
2012-04-12 09:19:46 +00:00
|
|
|
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>
|