Hi Marcel,

I am not sure that I completely understand the problem you are experimenting. You are comparing an <xsl:value-of select="..."/> to an <xforms:input ref="..."/>, both in the view. Note that first is applied on the output of the model, while the second applies on the XForms instance. Consequently in most cases <xsl:value-of select="..."/> and <xforms:input ref="..."/> will return a different result.

Now it looks like you are trying to modify the XForms instance from the model. To do that, your model must be implemented in an XPL that outputs the modified instance in the "instance" output. For instance, consider that you have a page with this XForms model:

<xforms:model xmlns:xforms="http://www.w3.org/2002/xforms";>
    <xforms:instance>
        <instance>foo</instance>
    </xforms:instance>
</xforms:model>

The model replaces "foo" with "bar":

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";>

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

    <p:processor uri="oxf/processor/xupdate">
        <p:input name="data" href="#instance"/>
        <p:input name="config">
            <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate";>
                <xu:update select="/instance">bar</xu:update>
            </xu:modifications>
        </p:input>
        <p:output name="data" ref="instance"/>
    </p:processor>

</p:config>

The view contains a <xforms:input ref="instance"/>. As a result the value displayed in the text field will be "bar". I hope this will help. If this does not completely address your issue, could you please send some of your files so I can better understand the issue at hand.

Alex

Marcel Reichert wrote:
Hi,

I was updating my OXF version from 1.5.2 to 2.0 Beta.
In 2.0 something has changed with <xform:input ref="text"/> (view).
With <xform:input> in 1.5.2 I could take my called data from the
webservice l to the xform:input form. Now, it doesn�t work.

My application:
xforms.xml -> defaultdata (should be overwritten by the data of the
model.xpl)
model.xpl -> calls a webservice to get actual data
view.xpl  -> should show the called data from the model

(in view.xpl) <xsl:value-of select="//*"/> shows the right data!!!!
(in view.xpl) <xforms:input ref="//*"/> shows no data!!! Why?

Something is wrong with the reference in ref="". I can only get
the data from the (default)xforms.xml in xform:input, but not from the
model.xpl .


In Version 1.5.2 it worked, but in 2.0 it doesn�t work! What should I change to get it working?

thanks and regards
Marcel




_______________________________________________ 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