W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > April 2012

XProc V.next Requirements and Use Cases - 5.9 Run a Custom Program

From: James Fuller <jim@webcomposite.com>
Date: Thu, 12 Apr 2012 16:32:05 +0200
Message-ID: <CAEaz5msm_k_BPvAZ9gsMPxDeUR=WbHt_JwZpXN8g9Pcj0S186Q@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org
here is an example pipeline that satisfies this use case.

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step
    xmlns:c="http://www.w3.org/ns/xproc-step"
    xmlns:p="http://www.w3.org/ns/xproc"
    xmlns:cx="http://xmlcalabash.com/ns/extensions"
    version="1.0"
    exclude-inline-prefixes="cx c p">
  <p:input port="source">
    <p:inline><test/>
    </p:inline>
  </p:input>
  <p:output port="result"/>
  <p:exec command="/bin/cat" result-is-xml="true"/>
</p:declare-step>

will generate

<c:result xmlns:c="http://www.w3.org/ns/xproc-step"><test/></c:result>

Jim Fuller
Received on Thursday, 12 April 2012 14:32:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 12 April 2012 14:32:41 GMT