Forum Moderators: open
Yup, that's right, a working XHTML2 page! and it works in IE6 and is served as text/xml! The second blurb tells a bit about it.
View the source and look at how clean the markup is, I'm totally impressed! :)
Jordan
Ps. Mods -- I hope this link is OK, I figured it would be since it is not personal or promotional in nature and displays the first working example (that I've seen, at least) of a new technology.
XHTML2 elements are almost completely different from HTML elements from what I've seen. Don't assume that a similar name means a similar function. The "h" may have nothing to do with headings and may be purely navigational. Or it may be a generic box, like a <div>, which is my guess since those are not 'real' links, they are generated by an xbl binding and a htc behavior for Mozilla and IE respectively.
--------
Rincewind:
I believe there is a totally new image tag, but I'm not 100% sure. The way they are doing it in the page in link is using the <object> element...
<object data="http://.../image.gif">Click here to visit...</object>
(If I'm not mistaken this will also work in the current incarnations of XHTML 1.0 and 1.1).
--------
eduardo:
The DOCTYPE Declaration (DTD) is a standard part of XHTML / XML, they just defined their own, inline, so they could use a few familiar XHTML attributes like "id". There will be an official W3C rec-spec for the DTD set once XHTML2 passes out of draft.
Jordan
This is what I'm seeing...
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="xhtml2.css"?>
<!-- no doctype yet, but the id attribute needs to be of type ID,
so the id (#) syntax works in CSS -->
<!DOCTYPE html [
<!ATTLIST section id ID #IMPLIED>
<!ATTLIST h id ID #IMPLIED>
<!ATTLIST div id ID #IMPLIED>
<!ATTLIST nl id ID #IMPLIED>
]>
<?xml version="1.0"?> - XML prologue
<?xml-stylesheet type="text/css" href="xhtml2.css"?> - External CSS (same as XHTML / HTML CSS)
<!DOCTYPE html [...]> - Inline DTD for <html> root element
Jordan
Yup, it's the way to declare any stylesheet in XML. The type attribute specifies the kind of stylesheet to load; "text/css" is the standard CSS most of us are used to, "text/xsl" (or "text/xml") to load an XSL(T) stylesheet (cf. source of: [w3future.com ]), or an XSL-FO stylesheet.
Jordan
No, because there is no img tag in XHTML 2.0. You have to use the object tag.
This page should answer many of you guy's questions.
[www-106.ibm.com...]
<section>
<h>Widgets</h>
<p>blah blah blah</p>
<section>
<h>Red Widgets</h>
<p>Text about red widgets, prices, etc</p>
</section>
<section>
<h>Blue Widgets</h>
<p>Text about blue widgets, price, etc</p>
</section>
<p>Widget warranty
</section>
The search engine knows for fact that the widgets section contains information about red and blue widgets, and clearly knows which info is about red widgets, and which is about blue widgets. Furthermore, it knows for fact that the widgets warranty applies to both red and blue widgets. Compare to an HTML fragment:
<h1>Widgets</h1>
<p>blah blah
<h2>Blue Widgets</h2>
<p>blah blah blue widgets
<h2>Red Widgets</h2>
<p>Blah blah red widgets
<p>Widgets warranty info
How can a search engine know for fact that the widget warranty info applies to both red and blue widgets? It will have to guess, and with all the implicitness of HTML, it won't be able to guess correctly all the time.
Furthermore, the img element is gone. You embed other content directly into your document:
<p src="holiday.png" type="image/png">
<span src="holiday.gif" type="image/gif">An image of us on holiday.</span>
</p>
So that paragraph gets replaced with holiday.png, or if the UA doesn't support png (or can't load it), holiday.gif, or if the UA doesn't support gif (or can't load it) the text "An image of us on holiday."