| « xhtml-1.1 | Dead Space » |
xhtml-1.1
Link: http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/Overview.html
So, since I have to wait for Aaron to produce a new logo anyway I've decided to take the time to update the site to xhtml-1.1. This isn't as easy as it may first seem. Not only does the resultant html need to conform to the specification but the XSL also needs to be altered somewhat to be compatible with this new version of xhtml. Just figuring out how to write the xsl:output method correctly was enough to give me a headache!
It turns out that xhtml is actually considered to be xml and NOT html at all so the XSLT processor has to be informed of this and different namespaces declared. Did you know that xhtml is not "text/html" but "application/xhtml+xml"? Neither did I until yesterday.
Anyway, I have the wwwredesign.gentoo.org site now serving xhtml-1.1 and it is *almost* error free and compliant. I'm almost done reading the xhtml-1.1 specification and I should have the site passing the validation within a week. In just the last few days I've cut the number of errors from 59 to 15 so I'm almost there. :-)
11 comments
HTTP/1.1 200 OK
Date: Fri, 06 Jan 2006 17:04:38 GMT
Server: Apache/2.0.54 (Gentoo/Linux)
ETag: "191a-43bdc115"
Content-Length: 20132
Last-Modified: Fri, 06 Jan 2006 01:00:05 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Looks like it's still served as text/html, no?
I've tested it on Win XP Pro (work) with IE 6 SP2 and it seems ok. However, that's probably due to it being sent as text/html instead of the proper application/xhtml+xml MIME type, as Renat mentioned. Remember: If you want to be more accessible, you should probably stick with XHTML 1.0 Strict, as that can be sent as text/html if needed. That's what I do on my currently in-production-on-my-desktop website, using a small PHP snippet to do the negotiation. :)
Have a nice Friday...
--Peter
-- sorry, the html/php code was screwed in my previous post --
As for not caring about IE, i think tomk's stats showed that about 25% of visitors to wwww.gentoo.org use IE, and breaking it for them isn't an option. :-P
In fact, if you use the validator and let it auto detect the doctype it correctly detects xhtml-1.1 and validates the page using that specification (ignore the errors, I'm still workin' on it). Browsers will also detect it, including IE, and use the correct specs to render the page. They also render the page in Standards Compliance Mode, including IE.
Trust me on this, I researched it *extensively* before making the jump to xhtml-1.1, I didn't just blindly decide to change.
I started making a new website and I recall something about a XML prolog ...
blabla