W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > February 2013

RE: [Issue-70] Defined order of precedence missing inherited local values [Action-437]

From: Yves Savourel <ysavourel@enlaso.com>
Date: Sun, 24 Feb 2013 16:04:59 -0700
To: <public-multilingualweb-lt@w3.org>
Message-ID: <008501ce12e3$5f5c3e40$1e14bac0$@com>
Hi Felix, Fredrik, all,

Regarding issue-70's proposed solution (also related to issue-118 (HTML ITS default behavior))

> Here's a suggestion for the addition to 5.5 between "global selections" 
> and "data category defaults". It should clarify the example if I'm not 
> mistaken. Note though, he says "his instinct is that inherited local 
> markup has precedence over global explicit rules" and this is currently 
> not the case which might confuse other people. The more common case 
> being <html translate=no> not overriding existing global rules on specific elements.
>
> 3.   Inheritance from a parent element node according to data category
> specific inheritance rules (inheritance<http://www.w3.org/TR/2012/WD-its20-20121206/#datacategories-defaults-etc>).
> ITS information is inherited from the closest parent itself selected 
> via ITS markup or global rules. If said parent is selected via both 
> explicit local ITS markup and global rules, the local ITS markup has 
> precedence in the inheritance.

I agree that a clarification there would resolve the issue.

But I don't think the text "If said parent is selected via both explicit local ITS markup and global rules, the local ITS markup has precedence in the inheritance." The sentence is true only if none of the children node has been selected by a rule.

In our current (and 1.0) mechanism the local markup overrides only the node where it is specified. Inheritance is something that is resolved after all nodes have been decorated and all overrides have been applied.

This is illustrated in this 1.0 example:
http://www.w3.org/International/its/tests/inputdata/Translate5.xml
Where the explicit global selection for <b>Simple Man</b> is not overridden by the local translate attribute in <item>
As for the nodes that have not been explicitly selected by a global rules or a local one, they just take whatever value the parent has.

In Chase's example:

   <xml>
     <its:rules>
       <its:translateRule selector="//bar" translate="no" />
     </its:rules>
     <foo its:translate="yes">
       <bar>Is this translatable?</bar>
     </foo>
   </xml>

The content of <bar> is not translatable.

I'm not sure how to express that in the added paragraph, but we should make sure it's clear.

cheers,
-yves
Received on Sunday, 24 February 2013 23:05:33 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 9 June 2013 00:25:08 UTC