- From: Norman Walsh <ndw@nwalsh.com>
- Date: Fri, 16 Apr 2010 11:56:47 -0400
- To: XProc Dev <xproc-dev@w3.org>
- Message-ID: <m2wrw79yrk.fsf@nwalsh.com>
Dave Pawson <dave.pawson@gmail.com> writes:
> On 16 April 2010 11:56, Norman Walsh <ndw@nwalsh.com> wrote:
>
>> The p:log step is sometimes useful. Giving steps names is often useful.
>> The cx:message and cx:tee steps are often useful.
>>
>> The cx:message step is an XML Calabash extension,
>>
>> <p:declare-step type="cx:message">
>> <p:input port="source"/>
>> <p:output port="result"/>
>> <p:option name="message" required="true"/>
>> </p:declare-step>
>
> So I could 'slip that in between' two steps? 'Splice' is the appropriate term
> I think! At least for ropes.
>
>>
>> but cx:tee is an ordinary pipeline.
>>
>> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
>> xmlns:cx="http://xmlcalabash.com/ns/extensions"
>> type="cx:tee" name="main" version="1.0">
>> <p:input port="source" sequence="true" primary="true"/>
>> <p:output port="result" sequence="true" primary="true"/>
>> <p:option name="href" required="true"/>
>> <p:option name="debug" select="0"/>
>>
>> <p:choose>
>> <p:when test="$debug != 0">
>> <p:store name="saving-debugging-output" method="xml" indent="true">
>> <p:with-option name="href" select="$href"/>
>
> ??? Insert the .. xml debug output? in here?
You use it like this:
<cx:tee href="/path/to/file" debug="1"/>
If you set debug=0 (or don't set it), then it does nothing.
It stores its input in /path/to/file and then sends that same document to
its output.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | The happiest people seem to be those
http://nwalsh.com/ | that have no particular reason for
| being happy except that they are
| so.--W. R. Inge
Received on Friday, 16 April 2010 15:57:24 UTC