Presentation is loading. Please wait.

Presentation is loading. Please wait.

XHTML, XForms, XML Events & Device Independence Based on W3C Specs as of April 2002 Marc Abrams

Similar presentations


Presentation on theme: "XHTML, XForms, XML Events & Device Independence Based on W3C Specs as of April 2002 Marc Abrams"— Presentation transcript:

1 XHTML, XForms, XML Events & Device Independence Based on W3C Specs as of April 2002 Marc Abrams Abrams@vt.edu

2 XHTML Overview XHTML 1:Put HTML4.01 into XML syntax XHTML 1.1:Modularize XHTML for “resource constrained devices” DOM-2 support: Attach event handlers to XHTML elements via XML Events

3 XForms Goals Provide richer Web forms Multiple forms per page, and pages per form Provide form processing model: Forms Submit Protocol Suspend and Resume support Provide forms on various devices Seamless integration with other XML tag sets (XHTML, WML, …) Relies on XML model of form data (vs. HTML’s simple name=value pairs) XForms Model to describe structure of XML Instance Data Separate data, logic and presentation

4 Relation of XForms Components Diagram from W3C: http://www.w3.org/MarkUp/Forms/arch1.pnghttp://www.w3.org/MarkUp/Forms/arch1.png

5 Usage Scenario Underlying XForms Web designer starts with a purpose (e.g., data collection) Purpose is realized by interactive presentation (a form) Completion of form produces data Example: Purpose=find # students in a course Presentation =form with list of course #s Data=chosen course number

6 Old style HTML Form Cash …

7 XForms Example (1)

8 XForms Example (2) Credit Card Number Submit

9 Data Submitted by Browser Hey, it’s XML, not that weird http://…?x=123! Credit 1235467789012345

10 Instance Data Is Described by Model

11 XML Events Motivation: HTML does this: Problems: Must change HTML to add new event names Mixes event handling into document content

12 XML Events - Example The draft document … You can attach listeners to any XML tree node.

13 Conclusion XHTML is modular, but not truly device independent XForms is device independent, but only provides a form metaphor They are limited to XML languages (not Java, C++) So these are steps toward general device independence, but not a full solution

14 References XML Events (http://www.w3.org/TR/2001/WD-xml-events-20011026/)http://www.w3.org/TR/2001/WD-xml-events-20011026/ XForms - The Next Generation of Web Forms (http://www.w3.org/MarkUp/Forms/)http://www.w3.org/MarkUp/Forms/ XHTML Roadmap (http://www.w3.org/MarkUp/xhtml-roadmap/)http://www.w3.org/MarkUp/xhtml-roadmap/


Download ppt "XHTML, XForms, XML Events & Device Independence Based on W3C Specs as of April 2002 Marc Abrams"

Similar presentations


Ads by Google