On Mon, Jan 10, 2005 at 03:32:01PM +0100, Erik Bruchez wrote:
> This is a fairly typical scenario. If I understand well, you want an
> initialization pipeline (say, "init.xpl") declaring an output (say,
> "abc"). But, this output may or may not be read by the calling
> pipeline.
Yep, exactly.
> So within init.xpl, just make sure a null serializer is reading the
> data just before it is sent to the output. This way, you only have to
> do this once in init.xpl, and the calling pipelines can do whatever
> they want: read the output if they want to, or just ignore it.
>
> E.g. something like:
>
> <p:config>
> <p:output name="abc" type="output">
>
> ...
>
> <p:output name="..." id="abc-output" ref="abc"/>
> </p:processor>
>
> <p:processor name="oxf:null-serializer">
> <p:input name="data" href="#abc-output"/>
> </p:processor>
>
> </p:config>
Hmm, yes, but this introduces another problem in my case: I *also*
want to use the "new" data *inside* the when/otherwise clause itself,
and as soon as I do this, the associated id is not recognized outside
the p:choose as it is considered to be an "choose-internal" id:
<p:config>
<p:param name="abc" type="output">
...
<p:choose ...>
<p:when ...>
<p:processor ...>
<p:output name="data" id="abc-output" ref="abc"/>
</p:processor>
<p:processor ...>
<p:input name="data" href="#abc-output"/>
</p:processor>
</p:when>
...
</p:choose>
<!-- THIS DOES NOT WORK NOW -->
<p:processor name="oxf:null-serializer">
<p:input name="data" href="#abc-output"/>
</p:processor>
</p:config>
Do you maybe have a "smart" solution for this (except calling
another identity processor in the when part)? ;-)
--
-- Jos Vos <[EMAIL PROTECTED]>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user