[Fwd: Re: XHTML Strict 1.1 Validation vs 1.0]

Further to our discussion of @lang vs @xml:lang and how to deal with it 
in documents served as text/html, I saw the attached message in the 
validator list today.  Apparently you can style xml:lang and @lang.... 
so I think this issue may be moot.  My only personal concern was 
stylesheet <-> document interoperability.  So I think we should change 
the advice in Appendix A of XHTMLMIME to read something like:

DO use the xml:lang attribute to specify the language of an element.

I think this is good advice for people writing content for modern user 
agents.  Or good enough, anyway.

-- 
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com

Forwarded message 1

  • From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
  • Date: Wed, 02 Apr 2008 19:40:27 +0100
  • Subject: Re: XHTML Strict 1.1 Validation vs 1.0
  • To: David Cédric Latapie <david@empyree.org>
  • Cc: SRJC <jsengstack@santarosa.edu>, www-html-editor@w3.org
  • Message-ID: <47F3D31B.3020409@googlemail.com>
  • Archived-At: <http://www.w3.org/mid/47F3D31B.3020409@googlemail.com>
David Cédric Latapie wrote:

> I found a real stopper for me in XHTML 1.1: it doesn't allow the ":lang" 
> attribute anymore; only "xml:lang" is possible. And "xml:lang" can't be 
> styled with CSS...

Yes it can, via the :lang() pseudo-class selector:

http://www.w3.org/International/questions/qa-css-lang

Internet Explorer 6 and 7 don't support it, but that's irrelevant since 
the current version of XHTML 1.1 must not be served as text/html so 
can't be used with IE anyway.

--
Benjamin Hawkes-Lewis

Received on Thursday, 3 April 2008 02:45:40 UTC