- From: <w3t-archive+esw-wiki@w3.org>
- Date: Tue, 07 Feb 2006 19:50:20 -0000
- To: w3t-archive+esw-wiki@w3.org
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: 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. + + {{{ + <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