Matthew J. Graham wrote:

>> > so the ref attribute is not really a connector mapping an output
>> > from a processor to the output of pipeline as I had thought it was?
>>
>> Yes it is :-)
>
> OK, so my example pipeline is:
>
> <p:config>
>  <p:param type="input" name="instance"/>
>   <p:param type="output" name="outcome"/>
>
>   <p:processor name="oxf:identity">
>     <p:input name="data" href="#instance"/>
>     <p:output name="data" ref="outcome"/>
>   </p:processor>
> </p:config>
>
> but when I try this, it does not work - I get no output from the
> pipeline. To get output from the pipeline I have to call the
> pipeline output data and change the processor output ref to data.

To know what's going on, you have to answer those two questions:

1. Who is calling your pipeline?
2. Is the caller reading the "outcome" output of your pipeline?

Let's say you can call the pipeline yourself, for example with:

<p:processor name="oxf:pipeline">
  <p:input name="config" href="my-example-pipeline.xpl"/>
  <p:input name="instance" href="#my-instance"/>
  <p:output name="outcome" id="my-outcome"/>
</p:processor>

<p:processor name="oxf:null-serializer">
<p:input name="data" href="#my-outcome" debug="see-if-something-is-going-on"/>
</p:processor>


In this case, if nothing comes out of the "outcome" output of the
pipeline, we have a problem.

Now if the answer to question #1 is "it is a model pipeline reference
to in the PFC", for example, then of course, the PFC won't read your
"outcome" output. It will read the "data" output if there is one, as
well as the "instance" output if there is one. For this to work, you
would have to write:

<p:config>
  <p:param type="input" name="instance"/>
  <p:param type="output" name="data"/>

  <p:processor name="oxf:identity">
    <p:input name="data" href="#instance"/>
    <p:output name="data" ref="data"/>
  </p:processor>
</p:config>

-Erik


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to