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

RE: FW: Question about selector scope and rule order

From: Yves Savourel <yves@opentag.com>
Date: Mon, 13 Mar 2006 21:12:48 -0700
To: "'Felix Sasaki'" <fsasaki@w3.org>
Cc: <public-i18n-its@w3.org>
Message-ID: <004701c6471d$8ea1f440$0300a8c0@Breizh>

Hi felix,

> According to http://www.w3.org/TR/2006/WD-its-20060222/#selection-defaults-etc,
> both translatability and localization information are handled the same way.

I'm still not sure if I understand: why are we talking about 'localization'? My early example picked that term for the attribute in
the example just randomly. It could be anything (any condition set by the host format). But I think you have answered my question,
so this part does not really matter.


>> <its:translateRule translate="no" 
>> its:selector="//span[@class='code']"/>
>> <its:translateRule translate="yes" 
>> its:selector="//span[@class='text']"/>
>> <its:translateRule translate="no" 
>> its:selector="//p[@class='notrans']"/>
>> 
>> My question then is, in this last set of rules, is rule #3 enough to override #2?
>
> As Sebastian pointed out, always the last rule wins. So it is enough, I think.

OK.


>> In my implementation it is not enough.
>> Felix: your answer, I think, is that it should be enough. I think 
>> you're correct, but Sebastian's answer threw me off and I'm not sure anymore.
>
> I think it is enough, and it would be in my (and I think in Sebastian's) implementation.

OK. I'll fix my implementation. I guess we want sure we have sample in the test suite where there is a case like this (Where a last
translate rule overrides an early rule pertaining to an element that is a child of the element specified in the last rule).

Thanks
-yves





-yves
Received on Tuesday, 14 March 2006 04:13:00 UTC

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