HTML
  Home arrow HTML arrow Page 5 - XHTML 2.0 Explained
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM developerWorks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

XHTML 2.0 Explained
By: Sasha Slutsker
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 26
    2004-08-24

    Table of Contents:
  • XHTML 2.0 Explained
  • Making the Switch
  • Get Ready for New Types of Lists
  • Sections and Headings
  • XForms
  • The MIME Situation

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    XHTML 2.0 Explained - XForms


    (Page 5 of 6 )

    XForms: The Future of Forms

    XForms give you total control over client-side form entry and are very powerful. XForms are very complicated, and covering them completely is out of the scope of this article. However, the idea is that they use XML. Everything is in the <xforms:model> tag. The form defines generic tags which are specified by XHTML. Something like this will be done:

    <xforms:model>
     <xforms:instance>
      <name />
      <age />
      <sex />
     </xforms:instance>
     <xforms:submission action = "post.php" method = "post" />
    </xforms:model>

    Then, in regular XHTML, you would go ahead and define them however you want.

    <input ref = "name">
     <label>Name: </label>
    </input>

    <input ref = "age">
     <label>Age: </label>
    </input>

    <input ref = "sex">
     <label>Sex: </label>
    </input>

    <submit submission = "submit">
     <label>Send</label>
    </submit>

    There are more complicated things you can do, too, but that is all out of the scope of this article. If you are truly interested in using XForms, check out the specification:

    http://www.w3.org/TR/xforms

    We are just scratching the surface of what XHTML 2.0 can do. Since it's fully integrated with XML, you can define your own namespaces however you want. The power of XHTML 2.0 is enormous.

    More HTML Articles
    More By Sasha Slutsker


       · It is me, the writer of the article. I just want to add that there are some examples...
       · is is just me or is anyone else thinking xhtml 2.0 is stupid.Removing <br/>Come...
       · I think it's just you. I welcome these standards as a way to help clean up the...
       · Crappy coding has very little to do with XHTML standards.And more to do with...
       · Please Kndly give a space like <br />It works now my dear.Happy...
       · Since i have made server side scripts, I hate many objects that makes much more work...
       · Who matters? Money-grubbing megacorps that are frozen in 1995 and know nothing...
       · "Removing <br/>Come on, now I have to type 5 times the code for a simple line...
       · "Seperation of content and style is one thing, but making thingslonger and harder...
       · If your scripts aren't flexible enough to allow this simple transition, then they're...
       · The space isn't necessary for anything in common use today (for example Netscape 4...
       · I have study all the documents for XHTML 2.0. But I am getting confusion here for...
     

    HTML ARTICLES

    - Building Single Row Database Forms with HTML
    - Introduction to Database Forms with HTML
    - Another Look at Animation of Geographical Ma...
    - Animation of Geographical Map Regions
    - Changing and Moving Pictures with CSS
    - Clickable Geographical Map Regions
    - Gradient Creation with the HR Element
    - Text on HTML Images: Do it Yourself
    - Custom Buttons in HTML
    - Quick Web Page Menu
    - Maximizing and Restoring HTML Images with th...
    - Maximizing and Restoring HTML Images with th...
    - Handling Hyperlinks and Images in HTML
    - Quick Start with HTML
    - HTML Tips






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway