XHTML-MOD: Erratum: LinkType "Alternate"

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:07 UTC