Hi,
To clarify: from the page-flow.xml:
<page id="register" path-info="/publish/register" model="publish/register-model.xpl" xforms="publish/register-xforms-model.xml" view="publish/register-view.xsl">
<action when="/form/action = 'register' and not(/form/document//@*[local-name() ='valid'] = 'false')" action="publish/register-user.xpl">
<result page="publish" when="/result/knownUID = 'false'">
<xu:update select="/form/user">
<xu:value-of select="document('oxf:instance')//uid"/>
</xu:update>
<xu:update select="/form/affiliation">
<xu:value-of select="document('oxf:action')//affiliation"/>
</xu:update>
</result>
<result when="/result/knownUID = 'true'">...
</action>
...
So the input for the form (from register-model.xpl) is: <input> <message/> <organisation>... </input>
What do you mean by the "input for the form"?
This is the model for the form which is filled in by the register-model.xpl (this executes a database query). The XML document output by the form (the XForms model) is different:
<form> <action/> <uid/> </form>
This feeds into the register-user.xpl and the output of this pipeline is:
<result> <knownUID/> <affiliation> </result>
When the result of result/knownUID is true then I want to stay on the current page (register) but have input/message (the output from register-mode.xpl) updated to "knownUID" so that the register-view.xsl can act accordingly.
Now what I want to do is add a value to message in the asterisked section, i.e. something like:
<result when="/result/knownUID = 'true'">
<xu:update select="/input/message">Known UID</xu:update>
</result>
As you are staying on the same page, the document you are updating with XUpdate is the current instance. It looks like the root element for your current instance is "result", so the "select" expression in <xu:update select="..."> should start with "/result", not "/input". If you tell XUpdate to do something on "/input/..." and the root element is "result", nothing will happen, which is what you observe.
Alex
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
