W3C home > Mailing lists > Public > xproc-dev@w3.org > November 2014

RE: Using HTTP PUT to store result into eXist

From: Loren Cahlander <Loren.Cahlander@bcbsnc.com>
Date: Mon, 17 Nov 2014 12:10:05 -0500
To: Loren Cahlander <Loren.Cahlander@bcbsnc.com>, Loren Cahlander <loren.cahlander@gmail.com>, "xproc-dev@w3.org" <xproc-dev@w3.org>
Message-ID: <E511F20AE33020408762F035DD436AC1060AB64BFD@SVWCMP013.bcbsnc.com>
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:output port="result">
        <p:pipe port="result" step="myStore"/>
        <p:input port="source">
            <p:pipe port="source" step="myPipeline"/>
    <p:rename match="BookStore/Book/Date" new-name="Year"/>
    <p:store href="xmldb:///db/myxproc/aa.xml" name="myStore"/>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:12 UTC