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

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 UTC