1 / 14

XHTML, XForms, XML Events & Device Independence: W3C Specs Overview

This presentation provides an overview of XHTML, XForms, XML Events, and Device Independence based on W3C specifications as of April 2002. It covers the features, goals, components, and usage scenarios of these technologies.

lriehl
Download Presentation

XHTML, XForms, XML Events & Device Independence: W3C Specs Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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.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 coursePresentation =form with list of course #sData =chosen course number

  6. Old style HTML Form <form action="http://example.com/submit" method="post"> <label> <input type="radio" name="as" value="cash"/> Cash </label> … </form>

  7. XForms Example (1) <xforms:model> <xforms:submitInfo action="http://examples.com/submit" id="submit"/> </xforms:model>

  8. XForms Example (2) <input ref="cc"> <caption>Credit Card Number</caption> </input> <submit submitInfo="submit"> <caption>Submit</caption> </submit>

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

  10. Instance Data Is Described by Model <xforms:model> <xforms:instance> <payment as="credit" xmlns="http://commerce.example.com/payment"> <cc/> </payment> </xforms:instance> <xforms:submitInfo action="http://example.com/submit" method="post"/> </xforms:model>

  11. XML Events Motivation: • HTML does this: <img onMouseOver = “document.images.button1.src='click.gif‘”> • Problems: • Must change HTML to add new event names • Mixes event handling into document content

  12. XML Events - Example <a id="link1" href="doc.html">The <em>draft</em> document</a> … <listener event="click" observer="para1" target="link1" handler="#clicker"/> 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/) • XForms - The Next Generation of Web Forms (http://www.w3.org/MarkUp/Forms/) • XHTML Roadmap(http://www.w3.org/MarkUp/xhtml-roadmap/)

More Related