- From: Lieske, Christian <christian.lieske@sap.com>
- Date: Tue, 19 Dec 2006 11:37:15 +0100
- To: "Felix Sasaki" <fsasaki@w3.org>, <public-i18n-its@w3.org>
- Message-ID: <544FBEB6875DAA46A08323B58D26B8018FB907@dewdfe14.wdf.sap.corp>
Hi Felix, Here's my suggestion for our action item Editors to write some clarification text explaining inheritance stops at nodes recorded in http://www.w3.org/2006/12/13-i18nits-minutes.html#action10 Let me know what you think. I would suggest to add the note to 2.2 (Overriding and Inheritance). On the one hand that's where we first extensively talk about inheritance. On the other hand, its non-normative. Cheers, Christian === Caveat Related to Inheritance Inheritance is applied only after every other method of establishing a value for a data category has been exhausted. Put differently: Values specified by rules are given precedence over inherited values. Accordingly, the content of the "code" element in the example below is marked as "not translatable" (since the value specified in the "translateRule" for "code" receives precedence over the inherited value from the local rule on the "par" element). <myDoc xmlns:its="http://www.w3.org/2005/11/its"> <head> <its:rules its:version="1.0"> <its:translateRule selector="//code" translate="no"/> <its:translateRule selector="//par" translate="no"/> </its:rules> </head> <body> <par its:translate="yes">This is the paragraph 2. It has some <code>special code 2</code>.</par> </body> </myDoc> This behaviour is in line with CSS: a global rule like em { color: blue ; } is overridden by <em style ="color: blue;">. However, for the <em> element it is not overridden by a local rule like <p style ="color: blue;"> ...<em>.
Received on Tuesday, 19 December 2006 10:38:21 UTC