RE: Using HTTP PUT to store result into eXist

I found my own answer:

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
    xmlns:c="http://www.w3.org/ns/xproc-step" name="myPipeline" version="1.0">
    <p:input port="source">
        <p:document href="xmldb:///db/myxproc/BookStore.xml"/>
    </p:input>
    <p:output port="result">
        <p:pipe port="result" step="myStore"/>
    </p:output>
    <p:identity>
        <p:input port="source">
            <p:pipe port="source" step="myPipeline"/>
        </p:input>
    </p:identity>
    <p:rename match="BookStore/Book/Date" new-name="Year"/>
    <p:store href="xmldb:///db/myxproc/aa.xml" name="myStore"/>
</p:declare-step>


Here is the XQuery script to run the XProc script:

xquery version "3.0";

import module namespace xproc="http://exist-db.org/xproc";

let $simple-proc := doc('/db/myxproc/lab1.xpl')/*
return xproc:process($simple-proc)



Blue Cross and Blue Shield of North Carolina

________________________________
Confidentiality Notice: This message is intended only for the use of the individual or entity to which it is addressed. This communication may contain individual protected health information ("PHI") that is subject to protection under state and federal laws, or other privileged, confidential or proprietary information of Blue Cross and Blue Shield of North Carolina that may not be further disclosed. If you are not the intended recipient, or the employee or agent responsible for delivering this communication to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer. Thank you.

Received on Monday, 17 November 2014 17:50:09 UTC