Active In SP
Joined: Jun 2010
07-10-2010, 04:52 PM
XForms.ppt (Size: 146 KB / Downloads: 48)
What is XForms?
XForms is the next generation and successor of HTML forms.
XForms separate Data from the presentation.
XForms uses XML to define form data as well as store and transport data.
XForms is device independent.
XForms contains features like calculations and validations of forms
In Xforms framework, input data is described in two parts:
The XForm model - defines what the form is, what it should do, what data it contains
The XForm user interface - defines the input fields and how they should be displayed
<xforms><model> <instance> <person> <fname/> <lname/> </person> </instance> <submission id="form1" action="submit.asp" method="get"/></model><input ref="fname"><label>First Name</label></input><input ref="lname"><label>Last Name</label></input><submit submission="form1"><label>Submit</label></submit></xforms>
XForms is not designed to work alone. There is no such thing as an XForms document.
XForms has to run inside another XML document.
It could run inside XHTML 1.0, and it will run inside XHTML 2.0.
If you want to use XForms in HTML (or XHTML 1.0), you should declare all XForms elements with an XForms namespace.
XForms is expected to be a standard part of XHTML 2.0, eliminating the need for the XForms namespace.
<html xmlns:xf="w32002/xforms"><head> <xf:model> <xf:instance> <person> <fname/> <lname/> </person> </xf:instance> <xfubmission id="form1" method="get" action="submit.asp"/> </xf:model></head><body><xf:input ref="fname"><xf:label>First Name</xf:label></xf:input><br /><xf:input ref="lname"><xf:label>Last Name</xf:label></xf:input><br /><br /><xfubmit submission="form1"><xf:label>Submit</xf:label></xfubmit></body></html>
|Possibly Related Threads...|
|XForms||computer science crazy||0||596||
03-09-2009, 05:12 PM
Last Post: computer science crazy