w3c xforms interactive web services; powerful client-side interfaces micah dubinko dave navarro...

17
W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

Upload: christina-mason

Post on 16-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

W3C XForms

Interactive Web Services;Powerful Client-side Interfaces

Micah Dubinko Dave Navarro David Cleary

Page 2: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

A Brief History of Web Forms

1993: HTML forms1994–2000: Nothing happenedToday: XForms

Page 3: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

HTML Forms Limitations

Some Assembly Required <input value=“initial value”>

Primitive Data Representation Urlencoded? Ugh.

Need Script to do anything… Validations Calculations Dynamic Forms

Page 4: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

Interactive Web Services

Some Assembly Required <input value=“initial value”>

Primitive Data Representation Urlencoded? Ugh.

Blending Purpose and Presentation <input type=“radio |

checkbox”> etc… No validations, calculations

XML In, XML Out

Integration with Web Services; XML ToolsLeverage XPath, XML Schema, XSLT, SVGAny Time, Any Place, and on Any Device

Page 5: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

How It Works

XSLT XForms

<>

<> <> <> <>

Source tree

Instance data

Stylesheet tree

XForms Processing

XSLT

Processing

Page 6: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

XForms User Interface

Page 7: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

XForms Model

Page 8: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

XForms Model

Defines the ‘Purpose’ of the formIncludes the following: Instance Data Submit Information XML Schema Information XForms specific properties and actions

Model and Instance can be synthesized

Page 9: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

XForms Instance

Provides template for your dataProvides default or partially submitted dataCan be inline or referenced externally

Page 10: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

XForms Schema Support

Full XML Schema can be inline or externally referencedSchema fragments can be inline Create user defined datatypes

Instance data can be annotated with type informationClient validates simple types, not structure

Page 11: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

XForms Conformance Profiles

Two conformance profiles to support wide range of devicesBasic includes subset of XML Schema datatypesFull includes complete XML Schema support

Page 12: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

XForms Constraints

XML Schema defines static contraintsXForms extends these with ‘computed expressions’Evaluated at runtime Is something relevant or required? Calculated fields

Page 13: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

XForms Actions

Defines common set of behaviors for formsBased on XML Events specificationAllows event processing without requiring Javascript

Page 14: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

XForms Submit Info

Provides How, Where, and What to submit Multiple models per form Partial form submission

Default is ‘post’ of XML Instance

Page 15: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

Help Make XForms Better!

XForms “Smoke Tests”Containing Document Schemahttp://dubinko.info/xforms/

Vote For XForms in Mozilla!http://bugzilla.mozilla.org/show_bug.cgi?id=97806

Page 16: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

Try Out XForms

Implementations:X-Smiles http://www.xsmiles.orgMozquito http://www.mozquito.comApache Cocoon http://xml.apache.org/cocoon/Chiba http://sourceforge.net/projects/chiba/ExFormula http://sourceforge.net/projects/exformula/

Authoring ToolsCardiff LiquidOffice (demo)http://www.Cardiff.com/xforms/

Page 17: W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary

For More Information…

[email protected] (subj: “Subscribe”)http://www.w3.org/TR/xforms/http://www.w3.org/MarkUp/Formshttp://www.xml.com/http://www.xmml.com/ (SVG site)www.zvon.org/xxl/XForms1.0/Output/More?