Gentoo Archives: www-redesign

From: Xavier Neys <neysx@g.o>
To: www-redesign@l.g.o
Subject: Re: [www-redesign] xhtml-1.1
Date: Sun, 08 Jan 2006 13:59:04
Message-Id: 43C11AA0.2070502@gentoo.org
In Reply to: [www-redesign] xhtml-1.1 by Curtis Napier
1 Curtis Napier wrote:
2 > While I'm waiting for Aaron to create a new logo I am taking the time to
3 > upgrade the site to xhtml-1.1. I put this in a blog post yesterday and
4 > already have received numerous reports that I am doing it incorrectly.
5 >
6 > I want everyone on the list to feel confident in this change:
7 >
8 >
9 > The specification for xhtml-1.1 says that the server *should* send
10 > application/xml+xhtml in the HTTP header but that it *can* send
11 > text/html in order to remain backwards compatible with older user
12 > agents, IE for example. As long as the doctype is set correctly (and it
13 > is) it is still valid xhtml-1.1.
14
15 It also says "should not" in black on red.
16 http://www.w3.org/TR/xhtml-media-types/#summary
17
18 You've explained at greath lengths why you think it is acceptable to send
19 text/html as content-type, but not why a user agent that accepts
20 application/xhtml+xml and is sent application/xhtml+xml is not told the
21 content is application/xhtml+xml
22 It's a minor issue with browsers, but I guess we'll get bugs or a questions
23 about that regularly.
24
25 Anyway, you should stick to xhtml1, preferably strict, because libxml2 does
26 not support 1.1.
27 http://mail.gnome.org/archives/xslt/2003-December/msg00047.html
28 http://bugzilla.gnome.org/show_bug.cgi?id=313707
29 Old stuff, but still valid.
30
31 If you stick to the XHTML 1.0 doctype, you'll notice magic stuff happening to
32 your transforms such as the name space being added to <html>, or xml:lang="pl"
33 automatically added if you only have lang="pl"...
34
35 e.g.
36 <?xml version="1.0" encoding="UTF-8"?>
37 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
38 xmlns:exslt="http://exslt.org/common"
39 xmlns:func="http://exslt.org/functions"
40 xmlns:str="http://exslt.org/strings"
41 xmlns="http://www.w3.org/1999/xhtml"
42 extension-element-prefixes="exslt func str" >
43
44 <xsl:output encoding="UTF-8"
45 method="xml"
46 media-type="application/xhtml+xml"
47 indent="yes"
48 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
49 doctype-system=
50 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
51
52
53 €0.02
54 --
55 / Xavier Neys
56 \_ Gentoo Documentation Project
57 / French & Internationalisation Lead
58 \ http://www.gentoo.org/doc/en
59 /\
60
61
62 --
63 www-redesign@g.o mailing list