Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Home Latest News
    • Storage

    XForms a Huge Step Forward for Web Forms

    Written by

    Timothy Dyck
    Published September 6, 2002
    Share
    Facebook
    Twitter
    Linkedin

      eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

      HTML is probably the worlds most important data format, and so changes come very slowly. But the World Wide Web Consortiums HTML Working Group has big plans for HTML.

      The current HTML standard is actually now XHTML 1.0 Second Edition, which is a set of minor changes to HTML to turn it into valid XML while still allowing current Web browsers to handle it.

      The big news is XHTML 2.0, a from-the-ground-up rethinking of HTML that keeps its strengths while ditching some long-standing stupidities or legacy items. It will not be fully backward-compatible with XHTML, so the W3C has freedom to introduce some fundamental (and much needed) redesigns. (Click here for the current working draft.)

      XHTML 2.0 is far off—and since updated browsers will be needed in order to view it, it could be nothing else. The W3C anticipates an XHTML 2.0 Candidate Recommendation in October 2003 and Proposed Recommendation in July 2004, so we wont be seeing compliant software until the end of 2004.

      XHTML 2.0 has many important changes for Web developers. Id like to focus on changes to HTML forms handling, since this area of HTML is undergoing a total rewrite, with many enterprise-friendly improvements on tap.

      XHTML 2.0 will use XForms 1.0 as its form-handling technology. XHTML, of course, uses a XML-based syntax to describe forms and parameters.

      My single favorite improvement is the addition of strong data typing to XHTML forms. Theres now a formalized way to mark form fields as required instead of having to write JavaScript or server-side logic to always check for this.

      Any forms parameter can have an associated XML Schema data type. There are the basic integer and float types, of course, but the real winner is XML Schemas support for ranges, enumerations and arbitrary string regular expressions (allowing text fields to be very precisely input-masked).

      XML Schema actually has more than double the number data types in SQL, so XForms will have stronger data typing than the databases storing the data they collect! I am a database guy, so data cleanliness is a big deal to me.

      Since this input-checking happens client-side, this wont have a security advantage (you have to check again at the server since the browser is easy to bypass), but it will be a big usability and data-correctness win.

      One area that still needs work is date handling, as the XML Schema date and time formats are both precise and cumbersome. I hope user agents (browsers) have some date parsing intelligence to try to normalize different date styles before validating them. Because the browser will know what kind of data type is expected, it could even do something like pop up a calendar control to avoid the whole date parsing issue entirely.

      XForms also takes form presentation and formatting (fonts, colors, and so on) out of the form itself. Even the type of form control is not specified any longer. Instead, user agents will (by default) render the form in the most appropriate way given the type of user hardware. Style sheets can be used to change this default formatting as Web designers desire.

      Forms can be initialized with XML data in a structured way instead of having to fill in value data in an HTML form the way we do today—one could even initialize an XForms form with the result of a Web service query to provide easy personalization.

      By default, XForms will submit data in XML format, so servers will need to handle forms parsing differently. This should be transparent to Web application code, though, as the Web scripting engine should take care of the necessary parsing.

      The W3Cs XForms homepage lists early implementations of client and server software that already support XForms, so you can try it out now. I cant wait to deploy this technology in our own applications. There are big benefits for users and developers ahead.

      What changes to HTML would you like to see? I can be reached at timothy_dyck@ziffdavis.com.

      Timothy Dyck
      Timothy Dyck
      Timothy Dyck is a Senior Analyst with eWEEK Labs. He has been testing and reviewing application server, database and middleware products and technologies for eWEEK since 1996. Prior to joining eWEEK, he worked at the LAN and WAN network operations center for a large telecommunications firm, in operating systems and development tools technical marketing for a large software company and in the IT department at a government agency. He has an honors bachelors degree of mathematics in computer science from the University of Waterloo in Waterloo, Ontario, Canada, and a masters of arts degree in journalism from the University of Western Ontario in London, Ontario, Canada.

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      MOST POPULAR ARTICLES

      Artificial Intelligence

      9 Best AI 3D Generators You Need...

      Sam Rinko - June 25, 2024 0
      AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
      Read more
      Cloud

      RingCentral Expands Its Collaboration Platform

      Zeus Kerravala - November 22, 2023 0
      RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
      Read more
      Artificial Intelligence

      8 Best AI Data Analytics Software &...

      Aminu Abdullahi - January 18, 2024 0
      Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
      Read more
      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Video

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2024 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.

      ×