Changing XML instance by a submission

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing XML instance by a submission

Raymond Jones
Hi

I've implemented a pipeline that adds some attributes to an XML
document. The XPL is associated with a page path in page-flow.xml.
Clicking the trigger submits the document but XML instance does not seem
to change. Have I missed something? Here are some elements from the form:

  ...
    <xf:instance id="main">
        <xi:include href="input:data"/>
    </xf:instance>
  ...
    <xf:submission id="my-submission" ref="instance('main')"
replace="instance" instance="main" method="post"
action="/myapp1/data-sample-xpl" />
  ...
    <xf:trigger>
        <xf:label>Test</xf:label>
        <xf:action ev:event="DOMActivate">
            <xf:setvalue ref="instance('main')/@action" value="'test'" />
            <xf:send submission="my-submission"/>
        </xf:action>
    </xf:trigger>
  ...

/Ray


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Changing XML instance by a submission

Alessandro Vernet
Administrator
Ray,

On Jan 16, 2008 3:43 AM, Raymond Jones <[hidden email]> wrote:
> I've implemented a pipeline that adds some attributes to an XML
> document. The XPL is associated with a page path in page-flow.xml.
> Clicking the trigger submits the document but XML instance does not seem
> to change. Have I missed something? Here are some elements from the form:
> [...]

Hard to say. If the instance does not change, it is maybe because
there is a problem with the invocation of the service. You might want
to check the ops.log. If the submission failed, you will find an error
there that should point you in the right direction.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws