XForms XML Powered Web Forms

by
Edition: 1st
Format: Paperback
Pub. Date: 2003-09-23
Publisher(s): Addison-Wesley Professional
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $46.19

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

-XForms are a combination of two of the most successful experiments ever performed on the Web: XML and HTML forms.-Raman, a member of IBM's Almaden Research Center, has years of experience writing and is a member of the XForms Working Group.-The strong market trend towards merging XML with forms as a means to manage data entry reinforces the need for this tutorial.

Author Biography

T. V. Raman is a member of IBM's Almaden Research Center and of the W3C XForms Working Group. He earned his Ph.D. from Cornell University and has filed more than 20 patents during his 10 years of work in advanced technology development. His areas of expertise include auditory interfaces, scripting languages, Internet technologies such as Web server applications, and Web standards.

Table of Contents

List of Figuresp. xv
List of Tablesp. xix
Prefacep. xxi
Acknowledgmentsp. xxiii
How to Read This Bookp. xxv
Welcome to XForms
XML Powered Web Formsp. 3
Backgroundp. 4
A Simple Web Applicationp. 6
Questionnaire Formp. 7
Developing the Web Applicationp. 7
Developing the User Interfacep. 8
A More Sophisticated Implementationp. 9
XForms Componentsp. 10
XForms Overviewp. 12
XForms Modelp. 12
XForms User Interfacep. 14
XForms Submitp. 18
The Complete XForms Questionnairep. 19
Deploying the XForms Questionnairep. 19
Summary of XForms Benefitsp. 21
XForms Featuresp. 21
XForms at a Glancep. 23
Standard Building Blocksp. 25
Introductionp. 25
XPath: XML Path Languagep. 26
Location Pathsp. 27
Location Path Syntaxp. 28
Variables, Functions, and Expression Evaluationp. 29
DOM2 Eventsp. 30
Introduction to DOM Eventsp. 30
XML Eventsp. 32
XML: Extensible Markup Languagep. 33
Encapsulating Structured Data Using XMLp. 33
Namespaces for Compartmentalizing XML Datap. 34
XML Schemap. 35
Schema Built-in Typesp. 37
Extending Built-in Typesp. 38
Defining Aggregations Using Complex Typesp. 40
XForms Implementationsp. 42
X-Smiles: An Open Source XML Browserp. 42
Novell XForms Previewp. 43
FormsPlayer--XForms for Internet Explorerp. 43
IBM XForms Previewp. 43
XML Standards at a Glancep. 44
XForms Components
XForms User Interface Controlsp. 49
XForms User Interface Designp. 50
Common Aspects of XForms Controlsp. 52
Anatomy of a User Interface Controlp. 53
Binding Controls to the Modelp. 53
Rendering User Interface Controlsp. 56
Interaction Behavior of Form Controlsp. 58
Collecting Text Inputp. 59
Customizing Input Controlsp. 60
Selecting from a Set of Valuesp. 63
Types of Selection Controlsp. 65
Open and Closed Selectionsp. 66
Default Selectionp. 66
Selections Using Static Choicesp. 67
Dynamic Selectionsp. 68
Selecting XML Structuresp. 70
Grouping Available Choicesp. 72
Rendering Selection Controlsp. 72
Selecting from a Range of Valuesp. 74
Uploading Datap. 76
Triggering Actionsp. 78
Anatomy of Element (trigger)p. 79
Submitting Datap. 81
Anatomy of Control (submit)p. 81
Modeling What, How, and Where to Submitp. 82
Anatomy of Element (submission)p. 83
Using Element (submission)p. 86
Submit Round-upp. 88
XForms Controls at a Glancep. 89
Creating Complex User Interfacesp. 91
Aggregation Using (group)p. 92
Labeling Groupsp. 92
Navigating among Groupsp. 94
Groups and Binding Expressionsp. 94
Dynamic User Interaction with (switch)p. 95
Anatomy of Construct (switch)p. 95
A Simple Example of (switch)p. 96
Model and Interaction-Based Switchingp. 97
Creating Multipage Tab Dialogs Using (switch)p. 98
Creating Wizards Using (switch)p. 100
Repeating Structures with (repeat)p. 102
Designing Construct (repeat)p. 103
Anatomy of Construct (repeat)p. 104
Shopping Cart Using Construct (repeat)p. 105
Adding Controls to the Shopping Cartp. 111
User Interaction with Construct (repeat)p. 113
Using Construct (repeat) within XHTML Tablesp. 114
Summary of Construct (repeat)p. 118
Complete Example of an XForms User Interfacep. 118
Defining the Structure of the Task Listp. 120
Declaring the Task List Instancep. 122
Declaring the Data Model within XHTML (head)p. 123
Creating the User Interface Via Nested Repeatsp. 124
Binding User Interface Controls to the Task Listp. 129
Adding a Toolbar for Navigationp. 129
Putting It Together inside an XHTML Pagep. 130
Submitting the Task Listp. 133
XForms User Interface at a Glancep. 134
XForms Model Propertiesp. 135
Introductionp. 135
Model Properties and CSS Stylep. 136
Attaching Constraints Via Element (bind)p. 139
Property relevant for Model-based Switchingp. 140
Insurance Form Using Model-based Switchingp. 140
Property required for Mandatory Fieldsp. 142
Extending Insurance Form with Property requiredp. 142
Property readonly for Controlling Changesp. 143
Conditional Editing Using readonlyp. 144
Property constraint for Dynamic Validationp. 144
Constraining Travel Dates Using constraintp. 145
Constraining the Number of Permitted Entriesp. 145
Property calculate for Dynamic Computationp. 147
Examples of Property calculatep. 147
Augmenting Schemas with Type Constraintsp. 148
Declaring Privacy Level Via P3Pp. 149
XForms Model Properties at a Glancep. 150
XForms Functionsp. 151
Introductionp. 151
Boolean Functionsp. 152
Function boolean-from-stringp. 152
Function ifp. 153
Number Functionsp. 153
Computing Minimum, Maximum, and Averagep. 154
Function index for Addressing (repeat) Structuresp. 155
Function count-non-emptyp. 156
String Functionsp. 156
Date-time Functionsp. 157
Function nowp. 158
Node-set Functionsp. 159
Binding Expressions: The Full Storyp. 159
XForms Functions at a Glancep. 161
XForms Actionsp. 163
Introductionp. 163
Declarative Event Handlersp. 164
Action (setfocus)p. 165
Action (setvalue)p. 165
Action (load)p. 166
Action (send)p. 166
Action (reset)p. 168
Action (message)p. 168
Action (action)p. 169
Action (dispatch)p. 170
Invoking XForms Processingp. 171
Actions (insert), (delete), and (setindex)p. 172
XForms Actions at a Glancep. 173
XForms Eventsp. 175
Introductionp. 175
Initialization Eventsp. 177
Interaction Eventsp. 178
XForms Processing Eventsp. 178
Navigation Eventsp. 179
Help Eventsp. 180
Submit and Resetp. 180
Notification Eventsp. 181
Setting Valuesp. 181
Select and Deselect Notificationsp. 181
Interacting with Repeat Collectionsp. 183
Listening for Changes in Statep. 183
Submit Notificationsp. 183
XForms Events at a Glancep. 185
XForms and the Next Generation Web
Connecting the User to Web Servicesp. 189
A Human-centric View of Web Servicesp. 189
XForms Access to Weather Servicep. 190
Connecting Users to Their Datap. 192
Leveraging XML for Collecting Informationp. 192
XForms Collect Structured Datap. 194
Creating Personalized Information Viewsp. 195
What Is a Portal?p. 195
Content Syndication Using RSSp. 196
UI Syndication Using WSRPp. 197
XForms Web Services at a Glancep. 199
Multimodal Accessp. 201
Multimodal Interaction for Ubiquitous Accessp. 201
Multimodal Accessp. 201
Multimodal User Interface Principlesp. 202
Multiple Modalities Need to Be Synchronizedp. 202
Multimodal Interaction Should Degrade Gracefullyp. 203
Multiple Modalities Should Share a Common Interaction Statep. 204
Multimodal Interfaces Should Be Predictablep. 205
Multimodal Interfaces Should Adapt to Users Environmentp. 206
Creating Multimodal Interfaces Using XFormsp. 206
One Model to Bind Them Allp. 206
Abstract Controls Enable Flexible Accessp. 207
XForms UI Creates Synchronized Viewsp. 208
XML Events Enable Rich Behaviorp. 209
Multimodal Interaction at a Glancep. 210
XForms and Accessibilityp. 211
XForms Enables Universal Accessp. 211
Design Principles for Accessible Interfacesp. 213
Content Should Encapsulate Relevant Metadatap. 213
Separate Content from Layout and Presentationp. 213
Ensure That Content Can Be Refactoredp. 214
Ensure That Rich Content Degrades Gracefullyp. 214
Avoid Device-specific Eventsp. 215
User Interfaces Should Exhibit Predictable Behaviorp. 215
Allow for Late Binding of Interaction Behaviorp. 216
Enable Centralized Event Handlingp. 216
Raise Notification Events for Key State Changesp. 216
Provide Hooks for Attaching Special Behaviorp. 216
Use Declarative Handlers in Favor of Scriptsp. 217
Leveraging XForms Accessibility Featuresp. 217
XForms Creates Accessible Contentp. 218
Accessibility in Stylep. 218
Accessibility through Eventingp. 220
User Agent Guidelines for Leveraging XForms Accessibilityp. 221
Accessing XForms Features from Adaptive Technologiesp. 222
XForms Accessibility at a Glancep. 222
Colophonp. 223
Bibliographyp. 225
Indexp. 229
Table of Contents provided by Ingram. All Rights Reserved.

Excerpts

W3C XForms--XML powered Web forms--is an overhaul to HTML forms from 1993. On-line forms are critical to electronic commerce on the Internet, and the HTML forms design from 1993 is now beginning to show its age. The advent of XML on the Web, and the subsequent move to Web Services as a means of connecting disparate information technologies to deliver end-to-end customer solutions has now made XML documents central to the fabric of the Web.XForms leverages the power of using XML in modeling, collecting and serializing user input. The XForms design enables simple browser-based interfaces for creating and editing XML documents with the client providing interactive support for ensuring that the XML document is valid. Thus, XForms enables thelast mileof connecting the end user to Web Services.XForms user agents provide an easy-to-use browser-based interface that enables the end-user to interact directly with information technologies that have been published as Web Services. As the Web moves from being a desktop-only phenomenon to a means of ubiquitous electronic access, Web transactions need to be available from a variety of end-user access devices ranging from desktop computers to smart phones. The XForms authored interface is well-suited for delivery to a variety of interaction modalities and end-user devices, thus assuring content developers the widest audience for their transaction based applications.From the user's perspective, XForms revolutionizes the way business critical information is collected and published on the Web. A key consequence of this evolution is that information technologists can continue to model business data using abstract structures that are amenable to machine processing; XForms binds a user-friendly Web browser interface to such abstract XML models, thereby empowering the end-user to edit and update these abstract structures. In this sense, XForms enables a standard Web browser to associateeditable viewsto the underlying XML models. This ability to view and edit XML documents from within a standard Web browser is likely to prove a key empowering technology. How To Read This BookThis book is targeted primarily at Web authors wishing to use XForms in their work. It is also meant to help IT specialists transition from using legacy HTML forms for their Web projects. The book has been written to complement the W3CX Forms specification, and not to replace it.Each chapter of this book has a specific theme and concludes with a section that presents the material covered by that chapter at a glance. The book is organized in three parts: Welcome: The first part gives a birds-eye view of XForms and the various XML standards that it uses. Components: The second part details the various components making up the XForms architecture. Emerging Areas: The final part covers the relevance of XForms in the areas of Web services, multimodal interaction and accessibility. Welcome To XFormsThe first chapter of this book presents a birds-eye view of XForms after motivating the need for this new technology. This chapter should be sufficient to give decision makers a taste for the benefits of this exciting new standard. Web authors will find an introductory example that is first authored using the now familiar legacy HTML forms and then recast as an XForms application.W3C XForms is built on a set of XML standards. The second chapter reviews these various standard building blocks and is meant as a quick tutorial. The material presented here is sufficient to get a taste for these standards and understand the examples in this book. However, it is not meant to be a complete review of these various standards. Readers familiar with XML Schema, XML namespaces and XPath will find this chapter a useful review. Readers new to these specifications will find the chapter a useful starting point as they get acquainted with the space of XML

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.