w3schools    w3Schools
Search W3Schools :
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

XML Certification
Download XML editor
Custom Programming
Table of contents
XForms Tutorial
XForms Intro
XForms Model
XForms Namespace
XForms Example
XForms XPath
XForms Input
XForms Selections
XForms Datatypes
XForms Properties
XForms Actions
XForms Functions

XForms Datatypes

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Tutorials
W3Schools Forum

Helping W3Schools


XForms Properties

prev next

XForms properties define data restrictions, types and behaviors.

XForms Properties

XForms uses properties to define restrictions (or other attributes) that can affect the behavior of XForms controls.


A required="true()" property will not allow the specified instance data to be submitted as an empty value.

A type="decimal" property will only allow a decimal value to be submitted.

A calculate property can calculate a value for the instance data.

Please refer to the properties reference at the bottom of this page.

Binding Properties To Data

XForms uses the <bind> element to bind XForms properties to XForms data:

<bind nodeset="person/lname" required="true()"/>

In the example above, the attribute nodeset="person/lname" binds the property required="true()" to the instance data element <lname>.

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 if data item is required (cannot be blank)
type Defines the data type for the item

prev next

Altova® XMLSpy® - The world's best-selling XML editor!

Whether you're new to XML or already an advanced user, the user-friendly views and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to meet your XML and Web services development needs from start to finish.

  • XML editor
  • Graphical XML Schema / DTD editors
  • XSLT 1.0/2.0 editor, debugger, profiler
  • XQuery editor, debugger, profiler
  • Support for Office Open XML (OOXML)
  • Graphical WSDL editor & SOAP debugger
  • Java, C#, C++ code generation
  • And much more!

Download a fully functional free 30-day trial today!

Shopping Cart
Shopping Cart
$15 Domain Name
Save $20 / year!
Buy UK Domain Names
Register Domain Names
Cheap Domain Names
Cheap Web Hosting
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Website Templates
Flash Templates
Website Builder
Internet Business Opportunity
Custom Programming
FREE Trial or Demo
Web Content Manager
Forms,Web Alerts,RSS
Download XML editor
FREE Flash Website
FREE Web Templates
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
Home HOME or Top of Page Validate   Validate   W3C-WAI level A conformance icon Printer Friendly  Printer Friendly

W3Schools is for training only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright 1999-2009 by Refsnes Data. All Rights Reserved.