Name

cx:python — Evaluate steps implemented in Python.

Synopsis

Input portPrimarySequenceContent typesDefault binding
source✔ ✔  p:empty
program  text 
Output portPrimarySequenceContent typesDefault binding
result✔   
Option nameTypeDefault value
argsxs:string*()
parametersmap(xs:QName,item()?)?()
result-content-typexs:string?()
Declaration
 1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
   |   <p:input port="source" primary="true" sequence="true">
   |      <p:empty/>
   |   </p:input>
 5 |   <p:input port="program" content-types="text"/>
   |   <p:output port="result"/>
   |   <p:option name="args" as="xs:string*"/>
   |   <p:option name="result-content-type" as="xs:string?"/>
   |   <p:option name="parameters" as="map(xs:QName,item()?)?"/>
10 |</p:declare-step>

Installation

The cx:polyglot step is not included in the standard XML Calabash release. You must obtain it separately and install it on your classpath before you can use this step. (More detailed instructions, T.B.D.)

Description

The cx:python step runs a Python program as the implementation of a step.

For more information, see cx:polyglot.