[ESW Wiki] Update of "its0601TechLangDev" by YvesSavourel

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 YvesSavourel:
http://esw.w3.org/topic/its0601TechLangDev

------------------------------------------------------------------------------
  
  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.
+ 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>
@@ -21, +20 @@

  
  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.
  

Received on Monday, 3 April 2006 14:00:11 UTC