W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2010

EXProc step proposal: message

From: <Toman_Vojtech@emc.com>
Date: Wed, 21 Apr 2010 03:42:10 -0400
Message-ID: <997C307BEB90984EBE935699389EC41C01348D25@CORPUSMX70C.corp.emc.com>
To: <xproc-dev@w3.org>
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"/>

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


Vojtech Toman
Principal Software Engineer
EMC Corporation
Received on Wednesday, 21 April 2010 07:43:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:06 UTC