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

[ESW Wiki] Update of "its0601TechAttrAndTrans" by YvesSavourel

From: <w3t-archive+esw-wiki@w3.org>
Date: Thu, 19 Jan 2006 12:17:27 -0000
To: w3t-archive+esw-wiki@w3.org
Message-ID: <20060119121727.7670.63394@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 YvesSavourel:

   * Initial Requirement: Self:its0505ReqAttrAndTrans
- = Attribute and Translatable Text =
+ = Avoid non-translatable attributes =
+ Whenever possible, a schema should ensure that translatable text is stored in elements rather than attributes.
+ There are a number of issues related to storing translatable text in attribute values. Some of them are:
+  * The language identification mechanism (i.e. xml:lang) applies to the content of the element where it is declared, including its attribute values. If the text of an attribute is in a different language than the text of the element content, one cannot set the language for both correctly.
+  * In some languages, bidirectional markers may be needed to provide a correct display. Tags cannot be used within an attribute value. One can use Unicode control characters instead, but this is not recommended (see the W3C Note and Unicode Technical Report [http://www.w3.org/TR/unicode-xml/ Unicode in XML & Other Markup Languages]).
+  * It is difficult to apply to the text of the attribute value meta-information such as no-translate flags, designer's notes, etc. (Except when using mechanisms such as XPath or XPointer).
+  * The difficulty to attach unique identifiers to translatable attribute text makes it more complicated to use ID-based leveraging tools.
+  * Translatable attributes can create problems when they are prepared for localization because they can occur within the content of a translatable element, breaking it into different parts, and possibly altering the sentence structure.
+ All these potential problems do not occur when the text is the content of an element rather than the value of an attribute.
Received on Thursday, 19 January 2006 16:57:24 UTC

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