W3Schools

home HOME

XForms Tutorial
XForms HOME
XForms Intro
XForms Model
XForms Namespace
XForms Example
XForms XPath
XForms Input
XForms Selections
XForms Datatypes
XForms Properties
XForms Actions
XForms Functions

References
XForms Datatypes

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

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.

Examples:

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:

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

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




diploma   

Get Your Diploma!

W3Schools' Online Certification Program is the perfect solution for busy professionals who need to balance work, family, and career building.

The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.

The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.



Jump to: Top of Page or HOME or Printer Friendly Printer friendly page

W3Schools provides material for training only. We do not warrant the correctness of its contents. 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-2008 by Refsnes Data. All Rights Reserved.

Validate Validate W3C-WAI level A conformance icon W3Schools was converted to XHTML in December 1999
SITE SEARCH
 
About W3Schools
W3Schools Forum
ASP.NET Web Hosting
ASP.NET
Web Hosting
WEB HOSTING
$15 Domain Name
Registration
Save $20 / year!
UK Domain Names
UK Web Hosting

Alojamiento Web
Buy UK Domain Names
Register Domain Names
Cheap Domain Names
Cheap Web Hosting
Best Web Hosting
Domain Name Registration
PHP MySQL Hosting
Top 10 Web Hosting
Web Hosting Providers
Web Hosting Company
UK Reseller Hosting
Web Hosting
WEB BUILDING
Website Templates
Flash Templates
Website Builder
Internet Business Opportunity
Custom Programming
FREE Trial or Demo
Web Content Manager
Forms,Web Alerts,RSS
Ecommerce Software
XMLSpy XML Editor
Azbuz Blog
SHOPPING
UK Wholesalers
UK Wholesale
UAE Dubai Property
Private Student Loans
UK Dropshippers & Wholesalers Directory
EDUCATION
US Web Design Schools
HTML Exam
YELLOW PAGES
www.nettkatalogen.no
www.gulex.dk
www.gulex.se
www.gelbex.de
www.teloos.fi
www.teloos.fr
www.teloos.co.uk
www.teloos.at
www.teloos.de