Hi all,
I would like to save all the elements of my form in a XML document. How can I do that ?? Moreover, how can I this saved elements with another form ?? Thank you very much Here is my code but the save doesn't work : <?xml version="1.0"?> <html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns="http://www.w3.org/1999/xhtml"> <head> <xforms:model> <xforms:instance xmlns=""> <login> <username></username> <password></password> </login> </xforms:instance> <xforms:submission id="submit1" action="./example4/test.xml" method="post"/> </xforms:model> </head> <body> <p> <h1>Enter your Username and your Password</h1> </p> <p> <xforms:input ref="/login/username"> <xforms:label>Username : </xforms:label> </xforms:input> </p> <p> <xforms:input ref="/login/password"> <xforms:label>Password : </xforms:label> </xforms:input> </p> <p> <xforms:submit submission="submit1"> <xforms:label>Log IN</xforms:label> </xforms:submit> </p> <p> Test : <xforms:output ref="/login/username"/> <xforms:output ref="/login/password"/> </p> </body> </html> -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Damien,
When you submit the form: 1) An XForms submission in invoked, e.g. <xforms:submission action="/gaga"> 2) The page that handle /page received the submitted instance. E.g. in page-fow.xml: <page path-info="/gaga" model="save.xpl"> 3) In save.xpl, the "instance" input is the submitted instance. There you can for instance save it in a database. I hope this helps, Alex On 7/17/06, [hidden email] <[hidden email]> wrote: > Hi all, > > > I would like to save all the elements of my form in a XML document. How can I do that ?? Moreover, how can I this saved elements with another form ?? > > Thank you very much > > Here is my code but the save doesn't work : > > <?xml version="1.0"?> > <html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns="http://www.w3.org/1999/xhtml"> > <head> > <xforms:model> > <xforms:instance xmlns=""> > <login> > <username></username> > <password></password> > </login> > </xforms:instance> > <xforms:submission id="submit1" action="./example4/test.xml" method="post"/> > </xforms:model> > </head> > <body> > <p> > <h1>Enter your Username and your Password</h1> > </p> > <p> > <xforms:input ref="/login/username"> > <xforms:label>Username : </xforms:label> > </xforms:input> > </p> > <p> > <xforms:input ref="/login/password"> > <xforms:label>Password : </xforms:label> > </xforms:input> > </p> > <p> > <xforms:submit submission="submit1"> > <xforms:label>Log IN</xforms:label> > </xforms:submit> > </p> > <p> > Test : <xforms:output ref="/login/username"/> <xforms:output ref="/login/password"/> > </p> > </body> > </html> > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |