W3C home > Mailing lists > Public > xproc-dev@w3.org > August 2012

Re: To cx:message or not cx:message, that is the exception?

From: Florent Georges <fgeorges@fgeorges.org>
Date: Thu, 9 Aug 2012 16:54:27 +0100
Message-ID: <CADyR_r1a2wWrBgLQu8wXZ4Fa-OBw5AifPL53=_JB+Vpf=gysfg@mail.gmail.com>
To: Alex Muir <alex.g.muir@gmail.com>
Cc: XProc Dev <xproc-dev@w3.org>
On 9 August 2012 15:25, Alex Muir wrote:


> The following which in the otherwise is outputting a log
> message works, although it's not what I want.  I would like to
> <p:sink/> in the otherwise or do nothing basically however then
> I get the error messages:

  I have not read into great details, but it seems you want to
return an empty document.  If your step declares to return a
document, then it has to.  Because p:sink has no output at all,
it is an error then.  What you want (if I understood correctly)
is rather:

       <p:input port="source">

  Note that this is not the same thing as p:sink: it returns
something, but this is empty.  In some projects I used that
extensively, so I create 2 utility steps:

    <p:declare-step type="app:empty">
       <p:output port="result" primary="true"/>
	  <p:input port="source">

    <p:declare-step type="app:nothing">


Florent Georges
Received on Thursday, 9 August 2012 15:55:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:17:04 UTC