EXProc step proposal: message

Hi all,

One of the most useful extension steps (not only) for debugging XProc
pipelines is a "message" step that can be used for displaying (possibly
dynamic) messages on the console. At the moment, both Calabash and
Calumet have their own proprietary implementations of this step, but I
think that adding the "message" step to the EXProc library would be much
appreciated by the XProc users.

This is how the step is declared in Calumet:

<p:declare-step type="x:message" xmlns:x="...">
  <p:option name="message" required="true"/> <!-- string -->
  <p:option name="stderr" select="'true'"/> <!-- true/false -->
  <p:option name="stdout" select="'false'"/> <!-- true/false -->
  <p:input port="source" sequence="true"/>
  <p:output port="result" sequence="true"/>
</p:declare-step>

The step behaves similar to p:identity, except that it has a required
option "message" that specifies the message to be displayed on standard
output and/or standard error output (controlled by the "stderr" and
"stdout" options). (I believe the "message" step in Calabash behaves
similarly.)

Regards,
Vojtech


--
Vojtech Toman
Principal Software Engineer
EMC Corporation
toman_vojtech@emc.com
http://developer.emc.com/xmltech

Received on Wednesday, 21 April 2010 07:43:00 UTC