Book description
The use of forms on the web is so commonplace that most user interactions involve some type of form. XForms--a combination of XML and forms--offers a powerful alternative to HTML-based forms. By providing excellent XML integration, including XML Schema, XForms allows developers to create flexible, web-based user-input forms for a wide variety of platforms, including desktop computers, handhelds, information appliances, and more. XForms Essentials is an introduction and practical guide to the new XForms specification. Written by Micah Dubinko, a member of the W3C XForms working group and an editor of the specification, the book explains the how and why of XForms, showing readers how to take advantage of them without having to write their own code. You'll learn how to integrate XForms with both HTML and XML vocabularies, and how XForms can simplify the connection between client-based user input and server-based processing. XForms Essentials begins with a general introduction to web forms, including information on history and basic construction of forms. The second part of the book serves as a reference manual to the XForms specification. The third section offers additional hints, guidelines, and techniques for working with XForms. Topics covered in the book include:
creating XForms files in a text or XML editor
converting existing forms (electronic or paper) to XForms
collecting XML data from users in a user-friendly way
reducing the amount of JavaScript needed within browser interfaces
increasing the security and reliability of your current forms system by combining client-side and server-side checks into a common code base
creating interactive websites using the latest standard technology
XForms Essentials focuses on the practical application of XForms technology. If you work with forms, HTML, or XML information, XForms Essentials will provide you with a much simpler route to more sophisticated interactions with users.
Table of contents
-
XForms Essentials
- Preface
- 1. Introduction to Web Forms
- 2. XForms Building Blocks
-
3. XPath in XForms
- Getting Up to Speed with XPath
- Going Deep: The XPath Data Model
- Location Paths
-
Computed Expressions
- Operators
-
Functions
-
- position( )
- last( )
- count( )
- id( )
- local-name( )
- namespace-uri( )
- name( )
- string( )
- concat( )
- starts-with( )
- contains( )
- substring-before( )
- substring-after( )
- substring( )
- string-length( )
- normalize-space( )
- translate( )
- boolean( )
- not( )
- true( )
- false( )
- lang( )
- number( )
- sum( )
- floor( )
- ceiling( )
- round( )
- boolean-from-string( )
- if( )
- avg( )
- min( )
- max( )
- count-non-empty( )
- index( )
- property( )
- now( )
- instance( )
- days-from-date( )
- seconds-from-dateTime( )
- seconds( )
- months( )
- Extension Functions
-
- How XPath is Used in XForms
-
4. XML Schema in XForms
- Wide Open (Value) Spaces
-
Useful Datatypes
- xs:string
- xs:normalizedString
- xs:language
- xs:boolean
- xs:decimal
- xs:integer
- xs:nonPositiveInteger
- xs:negativeInteger
- xs:nonNegativeInteger
- xs:positiveInteger
- xs:double
- xs:dateTime
- xs:time
- xs:date
- xs:base64Binary
- xs:anyURI
- xforms:yearMonthDuration
- xforms:dayTimeDuration
- xforms:listItem
- xforms:listItems
- Other Datatypes
- An Email Datatype for XForms
- Complex Types
- xsi:type
- 5. The XForms Model
- 6. The XForms User Interface
-
7. Actions and Events
- XML Events
- XForms Actions
-
XForms Events
- Stages of XForms Processing
-
Useful Events
- The DOMActivate Event
- The DOMFocusIn and DOMFocusOut Events
- The xforms-ready Event
- The xforms-model-construct-done Event
- The xforms-model-destruct Event
- The xforms-help and xforms-hint Events
- The xforms-reset Event
- The xforms-submit Event
- The xforms-value-changed Event
- The xforms-select and xforms-deselect Events
- The xforms-valid and xforms-invalid Events
- The xforms-readonly and xforms-readwrite Events
- The xforms-required and xforms-optional Events
- The xforms-enabled and xforms-disabled Events
- The xforms-out-of-range and xforms-in-range Events
- The xforms-submit-done Event
-
Less-Useful Events
- The xforms-rebuild, xforms-recalculate, xforms-revalidate, and xforms-refresh Events
- DOM Mouse Events
- DOM Keyboard Events
- DOM Mutation Events
- The xforms-model-construct Event
- The xforms-focus Event
- The xforms-insert and xforms-delete Events
- The xforms-next and xforms-previous Events
- The xforms-scroll-first and xforms-scroll-last Events
- Error Handling
- 8. Submit
- 9. Styling XForms
- 10. Form Accessibility, Design, and Troubleshooting
- 11. Extending XForms
- A. Examining Microsoft InfoPath
-
B. The GNU Free Documentation License
- GNU Free Documentation License
- 0. Preamble
- 1. APPLICABILITY AND DEFINITIONS
- 2. VERBATIM COPYING
- 3. COPYING IN QUANTITY
- 4. MODIFICATIONS
- 5. COMBINING DOCUMENTS
- 6. COLLECTIONS OF DOCUMENTS
- 7. AGGREGATION WITH INDEPENDENT WORKS
- 8. TRANSLATION
- 9. TERMINATION
- 10. FUTURE REVISIONS OF THIS LICENSE
- Addendum: How to use this License for your documents
- Index
- Colophon
Product information
- Title: XForms Essentials
- Author(s):
- Release date: August 2003
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596003692
You might also like
video
GenAI Essentials for Everyone - Overview
Our team of experts has hand-selected and organized the most crucial concepts and practical applications of …
book
XForms: XML Powered Web Forms
Praise for XForms: XML Powered Web Forms “XForms is an exciting new technology for designing Web …
book
WebDAV: Next-Generation Collaborative Web Authoring
WebDAV: Next-Generation Collaborative Web Authoring is the complete guide to Web-based Distributed Authoring and Versioning (WebDAV), …
article
Have ChatGPT Ask You Questions
ChatGPT Shortcuts shows future prompt engineers how to harness the full potential of the state-of-the-art AI …