Justin/Calvin,

If I understand you correctly, you would like to access the "data" output of the action from the model. There are two ways you do this:

1) In the current version of OXF, the model can not access the "data" output of the action directly. However, the model can access the instance, and you can update the instance based on the action "data" output with XUpdate.

Say the action "data" output is: <validation>success|failure</validation>. You can update an element <validation> in the instance with:

<action when="..." action="...">
    <result>
        <xu:update select="/instance/validation">
            <xu:value-of select="document('#action')/validation"/>
        </xu:update>
    </result>
</action>

2) If in your case it is not reasonable to add anything to the instance, you might want to access the action "data" output directly from the model, without having to go through the instance.

This is not possible with the current version of OXF. You could expect that "data" input of your model to be connected to the "data" output of the action, if there is one. This will be the case in next version of OXF that we plan to release sometime next week. It is already implemented, so if you really need this, I could send you an "alpha" version. Otherwise, I would advice you wait for the release next week.

Alex


Justin Makeig wrote:
We have an action that calls a pipeline that returns an XML document that
describes validation results. This document may contain elements that
indicate an error has occurred. The result element in the controller is able
to test whether an error occurred by evaluating this document. However, the
model (and thus the view) do not have access to this document. Is there any
way for the result element to pass this to the model? We were thinking of
storing this document in the session, but that seems very kludgy.

- Justin Makeig and Calvin Smith


-- Center for Document Engineering University of California, Berkeley

_______________________________________________
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

Reply via email to