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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 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 / 27
    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


    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

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek