Revision [487]

This is an old revision of CalabashXproc made by DavidLee on 2009-04-26 11:05:52.

 

Calabash Command: xproc

Executes an xproc pipeline

Synopsis


xproc [options] pipeline


Description

Executes an xproc pipeline

pipeline The name of the xproc pipeline filel, or an inline xproc pipeline (as an xml expression)


Options


-base uri
-b uri Override the base-uri of the xproc pipeline file (to simulate executing a remote pipeline from a local file)

-n No input. Do not read any input ports for pipeline input

-iw
-iwrap Expect input documents to be wrapped by a root node. This allows a sequence of documents on an input port.

-ow
-owrap Wrap output documents with a root node "wrap". This allows a sequence of documents on an output port

-o name=value
-option name=value Pass an option to the pipeline. May occur multiple times

Inputs and Outputs

Pipeline inputs and outputs are taken from the implicit and named inputs to the command.

The following implicit ports are passed

stdin - Passed as the "source" input port
stdout - Passed as the "result" output port
stderr - Passed as the "error" output port

Additional input and output ports may be assigned using xmlsh named ports. For example to assign the "alternate" port from the file alternate.xml as well setting the source input from input.xml

$ xproc test.xpl  <input.xml (alternate)<alternate.xml



Notes

Like most xmlsh commands, anywhere an input file is expected, a file, uri, expression, port, or variable expression may be used instead.







Calabash Extension Module

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki