Re: Simple way to produce a message?

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