Rendered as plain XML and styled with CSS.
8/11/2002; 20:47:39 PM
Don't like the look of this site?
The HTML Working Group has released the first public Working Draft of XHTML 2.0. XHTML 2.0 is a relative of the Web's familiar publishing languages, HTML 4 and XHTML 1.0 and 1.1, and is not intended to be backward compatible with them. The draft contains the XHTML 2.0 markup language in modules for creating rich, portable Web-based applications. [Archive of W3C News in 2002]
A few new things I noticed: The hypertext and event attribute groups are part of the common attribute group. This means that most elements can be links, and can fire events. Very cool new text elements:
]]> instead of the
n> elements and
line> instead of
quote>. New list elements:
name> for navigation lists (ie. menus). XFrames is not yet published, but referred to in this standard.
I converted an archive page to XHTML 2.0. It works in IE6, Opera 6 and Mozilla. It is styled with CSS. I had to do some coding to get the links to work. For IE6 I made an HTC behavior that creates handlers for mouse events (yuck). For Mozilla I made an XBL binding that adds XLink attributes. And Opera 6 has CSS extensions for links. Being allowed to make every element a link makes the html code very clean. Sections structure the page very well. And the navigation lists are perfect for weblogs. So don't say it's just markupbation or that we'll be stuck with XHTML 1.1 for quite a while.
Some more info for those who'd like to start using XHTML 2.0 for every day use. The XHTML 2.0 example page is for the browsers plain XML. So absolutely nothing works what you'd expect from normal HTML. Every functionality has to be explained to the browser. CSS makes it easy to provide the site layout. Yesterday I coded the link functionality. Today I added support for images in Mozilla and Opera 6. But don't expect to be able to add an input element any time soon.
Today I tried a different approach for XHTML 2.0. I created an XSL stylesheet that converts XHTML 2.0 to XHTML 1.0. Mozilla and IE6 can apply the tranformation themselves. Other browsers can use the w3c xslt service.