- From: Yves Savourel <yves@opentag.com>
- Date: Sun, 3 Dec 2006 21:01:35 -0700
- To: "'Felix Sasaki'" <fsasaki@w3.org>
- Cc: <public-i18n-its@w3.org>
>> actually >> http://www.w3.org/TR/2006/WD-its-20060518/#selection-precedence >> is not clear about this: >> [[1. Implicit local selection in documents (ITS local attributes on a specific element) >> 2. Global selections in documents (using a rules element) >> 3. Global selections in an external file (using a rules element), >> linked via the XLink href attribute or a different mechanism >> 4. Selections via defaults for data categories, see Section 6.1: >> Position and Default Selections of Data Categories]] this list does >> not talk about inherited values. > > By the way, I'm seeing something wrong in this list I didn't noticed > before: #3 includes linked rules, I would think they should be in #2 > because we treat they are processed when we go through the embedded > rules no? That is there is no difference between an embedded its:rules that has the rules inside <its:rules> or one that has the same rules in a linked file. (And obviously, if an embedded its:rules has both, the linked rules are processed first). > yes, the example at > http://www.w3.org/TR/2006/CR-its-20061102/#link-external-rules is also like that. > But I read the list 1-4 also like that: 2 has higher precedence than 3, so 3 > (the external rules) are processed first ... YS> what I meant was that #3 includes linked rules, while it should be in #2. Linked rules are applied after external rules, at the same time as embedded rules (they are basically a special type of embedded rules rather than a special type of external rules as far as processing is going). For example in : <myDoc xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" > <info> <its:rules <its:translateRule selector="//whatever" translate="yes"/> </its:rules> </info> <header> <its:rules its:version="1.0" xlink:href="EX-link-external-rules-1.xml"> <its:translateRule selector="//term" translate="yes"/> </its:rules> <author>Theo Brumble</author> <lastUpdate>Apr-01-2006</lastUpdate> </header> <body> <p>A <term>Palouse horse</term> has a spotted coat.</p> </body> </myDoc> The rule on 'whatever' should be applied before the rules coming from the linked file. Looking at the #2 and #3 descriptions it seems the spec says the linked rules should be process before all embedded. (It makes no difference between external files associated through the tool mechanism and the one associated through linking). Cheers, -yves
Received on Monday, 4 December 2006 04:28:30 UTC