W3C home > Mailing lists > Public > public-i18n-its@w3.org > January to March 2006

[ESW Wiki] Update of "its0601TechLangDev" by fsasaki

From: <w3t-archive+esw-wiki@w3.org>
Date: Tue, 07 Feb 2006 19:50:20 -0000
To: w3t-archive+esw-wiki@w3.org
Message-ID: <20060207195020.24955.73069@localhost.localdomain>
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "ESW Wiki" for change notification.

The following page has been changed by fsasaki:

  It is not recommended to use your own attribute to specify the language content. The xml:lang is supported by various XML technologies such as XPath, or XSL. Using a different attribute would diminish the interoperability of your documents and reduce your capability to take advantage of some XML applications.
+ '''[[FS-''' I would propose the following addition:
+ "If not the language of the content, but a natural language value as data or meta-data about something external to the document has to be specified, a different attribute than xml:lang should be used. An example is the hreflang attribute in HTML.
+ {{{
+ <a xml:lang="en" href="xyz" hreflang="de">Click for German</a>
+ }}}
+ For further information, see
+ [http://www.w3.org/International/questions/qa-when-xmllang]"
+ ''']]'''
  Note: The scope of the xml:lang attribute applies to both the attributes and the content of the element where it appears, therefore one cannot specify different languages for an attribute and the element content. ITS does not provide remedy for this. Instead, it is recommended to not use attribute for translatable text.
  === Including xml:lang in XML Schema ===
Received on Wednesday, 8 February 2006 03:44:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:43:06 UTC