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

Re: Simple way to produce a message?

From: Imsieke, Gerrit, le-tex <gerrit.imsieke@le-tex.de>
Date: Wed, 19 Aug 2015 17:25:06 +0200
To: xproc-dev@w3.org
Message-ID: <55D49FD2.7080508@le-tex.de>


On 19.08.2015 17:20, Imsieke, Gerrit, le-tex wrote:
> 
> Sometimes it will be necessary to connect the source port of cx:message
> explicitly, as in
> 
> <cx:message>
>   <p:input port="source">
>     <p:pipe port="result" step="other"/>
>   </p:input>
> <p:with-option name="message" select="'GGGGGGGGGGGG ', string-join(for
> $n in /c:response/c:body/* return (name($n), for $a in $n/@* return
> concat(name($a), '=', $a)), ' ')"/>
> </cx:message>

And then you will probably want to evaluate p:with-option in the context
of the other step’s output, too:

<p:with-option name="message" select="…">
  <p:pipe port="result" step="other"/>
</p:with-option>
Received on Wednesday, 19 August 2015 15:25:35 UTC

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