Hello,
i am new to OPS. I am using orbeon 3.5.1 and i failed to bind user input entered in the text field to the xForms instance. Any help given is greatly appreciated. Following is the code that i am using. Thanks in advance. page-flow.xml <config xmlns="http://www.orbeon.com/oxf/controller"> <page path-info="/tutorial-hello3/" xforms="xforms-model.xml" view="view.xsl"/> <epilogue url="oxf:/config/epilogue.xpl"/> </config> view.xsl <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="2.0"> <head> <title>Hello World - Version hello3</title> </head> <body> <xforms:group> <xsl:if test="/myform/first-name != ''"> <p>Hello <xsl:value-of select="/myform/first-name"/>!</p> </xsl:if> <p> Please enter your first name: <xforms:input ref="/myform/first-name"/> <xforms:submit> <xforms:label>Greet Me!</xforms:label> </xforms:submit> </p> </xforms:group> </body> </html> xforms-model.xml <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> <xforms:instance> <myform> <first-name/> </myform> </xforms:instance> </xforms:model> Thanks trainee24 |
Administrator
|
Hi,
Your example seems to show you are referring to quite old Orbeon Forms examples (mainly, your use of XSLT to implement conditions in XForms). I would recommend you look at the tutorial which came with Orbeon Forms 3.5.1 if you haven't done so yet. It is available online here: http://www.orbeon.com/ops/doc/intro-tutorial -Erik trainee24 wrote: > Hello, > i am new to OPS. I am using orbeon 3.5.1 and i failed to bind user input > entered in the text field to the xForms instance. Any help given is greatly > appreciated. Following is the code that i am using. Thanks in advance. > > page-flow.xml > <config xmlns="http://www.orbeon.com/oxf/controller"> > > <page path-info="/tutorial-hello3/" xforms="xforms-model.xml" > view="view.xsl"/> > > <epilogue url="oxf:/config/epilogue.xpl"/> > > </config> > > view.xsl > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xsl:version="2.0"> > <head> > <title>Hello World - Version hello3</title> > </head> > <body> > <xforms:group> > <xsl:if test="/myform/first-name != ''"> > <p>Hello <xsl:value-of select="/myform/first-name"/>!</p> > </xsl:if> > <p> > Please enter your first name: > <xforms:input ref="/myform/first-name"/> > <xforms:submit> > <xforms:label>Greet Me!</xforms:label> > </xforms:submit> > </p> > </xforms:group> > </body> > </html> > > xforms-model.xml > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"> > <xforms:instance> > <myform> > <first-name/> > </myform> > </xforms:instance> > </xforms:model> > > > > > > Thanks > trainee24 > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 |
Free forum by Nabble | Edit this page |