W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 2000

XHTML-MOD: Erratum: LinkType "Alternate"

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 24 Oct 2000 01:52:26 +0200
Message-ID: <007401c03d4c$6dceeba0$932790d4@de>
To: <www-html@w3.org>, <www-html-editor@w3.org>
Hi,

http://www.w3.org/TR/2000/CR-xhtml-modularization-20001020 reads:

| [...]
| Alternate
|
| Designates substitute versions for the document in which
| the link occurs. When used together with the xml:lang attribute,
| it implies a translated version of the document. When used
| together with the media attribute, it implies a version
| designed for a different medium (or media).
| [...]

http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang reads:

| [...]
| lang = language-code [CI]
|
| This attribute specifies the base language of an element's
| attribute values and text content. The default value of this
| attribute is unknown.
| [...]

And there is the hreflang attribute,
http://www.w3.org/TR/html401/struct/links.html#adef-hreflang reads:

| [...]
| hreflang = langcode [CI]
|
| This attribute specifies the base language of the resource
| designated by href and may only be used when href is specified.
| [...]

So the above statement is wrong. The xml:lang attribute in this place does not
say anything about the language of the referenced resource. Imagine:

<html xml:lang="de">
[...]
<a href="http://www.w3.org">W3C</a>
[...]
</html>

The a element inherits the value of the xml:lang attribute of the html
element, so with the above statement in mind this means, that
http://www.w3.org/ is written in german language.

So the quoted passage should read like

[...]
 Alternate

 Designates substitute versions for the document in which
 the link occurs. When used together with the hreflang attribute,
                                              ^^^^^^^^
 it implies a translated version of the document. When used
 together with the media attribute, it implies a version
 designed for a different medium (or media).
[...]

xml:lang would only appropriate, if we have a case like

<html xml:lang="de">
[...]
<a xml:lang href="http://www.w3.org">World Wide Web Consortium</a>
[...]
</html>

regards,
--
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://www.websitedev.de/
..weaving a secure, well-formed, standard compliant WWW for =everyone=..
Received on Monday, 23 October 2000 19:52:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:49 GMT