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

RE: issue-77 Rule parsing precedence

From: Yves Savourel <ysavourel@enlaso.com>
Date: Sun, 13 Jan 2013 05:52:32 -0700
To: <public-multilingualweb-lt@w3.org>
CC: 'Pēteris Ņikiforovs' <peteris.nikiforovs@Tilde.lv>, 'Andis Lagzdiņš' <andis.lagzdins@Tilde.lv>
Message-ID: <assp.0725047fe2.assp.07255306b0.000701cdf18c$da6aa4f0$8f3feed0$@com>
Hi Mārcis,

We also don't have (I think) a test file that has all those components: a link, a global rule, a global rule with a link and some local markup. I'll try to come up with one, maybe for one of the data categories the most implemented.


-----Original Message-----
From: Mārcis Pinnis [mailto:marcis.pinnis@Tilde.lv] 
Sent: Sunday, January 13, 2013 1:46 AM
To: Pablo Nieto Caride; Yves Savourel; public-multilingualweb-lt@w3.org
Cc: Pēteris Ņikiforovs; Andis Lagzdiņš
Subject: RE: issue-77 Rule parsing precedence

Hi Pablo and Yves,

Thank you for the clarification. I missed the external rules in the script element within a rule element (probably because it is not defined in one place, but rather scattered throughout the document).

Then the procedure is clear - top-down for link and script elements and top-down for all rule elements.

However, maybe it should be clarified so that interpretations could be limited.

" 6.4 Precedence between Selections" (also the more general XML related 5.5 section) mentions precedence between global rules, local attributes and defaults, however it does not explain the relations between inline rules and external rules (even if it is clear to some of us, it could not be the same for someone else). In our internal discussions an equally plausible sequence for reading rules was: all inline rules and only then external rules (or vice versa). Which conflicts with the non-written top-down precedence for everything (and is actually why the discussion was started). 

But ... it is clear that the "top-down everything" approach is the correct one...
Thanks again for clarification Yves and Pablo.

Best regards,
Mārcis ;o)

-----Original Message-----
From: Pablo Nieto Caride [mailto:pablo.nieto@linguaserve.com]
Sent: Friday, January 11, 2013 8:19 PM
To: 'Yves Savourel'; public-multilingualweb-lt@w3.org
Cc: Pēteris Ņikiforovs; Andis Lagzdiņš
Subject: RE: issue-77 Rule parsing precedence

Hi Mārcis,

Yves is correct, I'm not sure if I understand exactly what you meant but developers can place the script element and the end of the body for speeding up purposes and still use both inline and external rules without precedence or overriding problems.


> ... In such scenarios the external rules would always be overriden by 
> the inline rules and there would not be a possibility to use them in 
> such loading time sensitive scenarios (thus also my concern on the 
> limitation ...).

I'm still not sure I understand:
As far as I know *in any scenario* all global rules are overridden by the local ones.


so external rules are always overridden by local attribute, just like in CSS.

or am I missing something?

> However, there is also a limitation – if prioritization is a top-down 
> one, the external rules can never override global rules that are in <body> tags!
> Please correct me if I am mistaken here?!

It can: an its:rules inside a <script> can have a link to an external file.

In other words, you have two ways to get external rules in HTML: the <link> element or the link attribute in <its:rules> inside <script>.

Received on Sunday, 13 January 2013 12:53:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:00 UTC