XForms Properties
XForms Properties
XForms uses properties to define data restrictions, types and behaviors.
Examples
A required="true()" property means that the input field is
required (cannot be empty on submit).
A type="decimal" property will only allow a decimal value to be submitted.
A calculate property can calculate a value.
Bind Properties to Data
XForms uses the bind element to bind XForms properties to XForms data:
<model>
<instance>
<person>
<fname/>
<lname/>
</person>
</instance>
<bind nodeset="person/lname" required="true()"/>
</model> |
In the example above, the <bind nodeset="person/lname"
required="true()"> specifies that the lname input field is required
(cannot be empty on submit).
XForms Properties Reference
| Name |
Description |
| calculate |
Defines a calculation to be performed on the item |
| constraint |
Defines a constraint for the item |
| p3ptype |
Defines a P3P data type for the item |
| readonly |
Defines an edit restriction for the item (cannot be
changed) |
| relevant |
Defines how relevant the data is (for display or
submission) |
| required |
Defines that a data item is required (cannot be blank) |
| type |
Defines the data type for the item |

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data.
Then it transforms data instantly or auto-generates royalty-free data integration code for recurrent conversions.
Download a free, fully functional 30-day trial to experience the following features:
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
Download a fully-functional trial today!
|
|
|
|