In your first example, the ID session_data is not bound to the output of the pipeline (data). When a processor is not connected, its output is not read and you won't see the debug output.
One solution is to add a NullSerializer. This serializer reads its data input and ignore it.
<p:processor uri="oxf/processor/null-serializer"> <p:input name="data" href="#session_data"/> </p:processor>
Alternatively, you can aggregate session_data with your static xml file in your
identity processor:
<p:processor uri="oxf/processor/identity">
<p:input name="data" href="aggregate('root', #session_data, oxf:/todo/page_data.xml)"/>
<p:output ref="data" name="page_data"/>
</p:processor>
Whichever solution you choose, keep in mind that processors are executed only if the pipeline need to read a processor's output.
Regards, Julien
Matt Allen wrote:
Guys,
Any clues on why the following pipeline does not send the session data to debug:
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline">
<p:param name="instance" type="input"/>
<p:param name="data" type="output"/>
<p:processor uri="oxf/processor/session-generator"
xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input name="config"> <key>login_results</key> </p:input> <p:output name="data" id="session_data"
debug="session_data"/> </p:processor>
<p:processor uri="oxf/processor/identity">
<p:input name="data" href="oxf:/todo/page_data.xml"/>
<p:output ref="data" name="page_data"/>
</p:processor>
</p:config>
But this one does:
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline">
<p:param name="instance" type="input"/>
<p:param name="data" type="output"/>
<p:processor uri="oxf/processor/session-generator"
xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input name="config"> <key>login_results</key> </p:input> <p:output name="data" ref="data" debug="session_data"/> </p:processor> </p:config>
The session is defiantly there, but whenever I use an identity processor, it doesn't seem to work? The previous pipeline sets the session correctly (according to the debug).
Cheers, Matt
Matt Allen
Client Services Director - 0413 777 771
River Dynamics
Winner, Innovation In Claims Management - 2003 Australasian Claims Expo
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
