- From: Pablo Nieto Caride <pablo.nieto@linguaserve.com>
- Date: Tue, 23 Oct 2012 15:22:10 +0200
- To: "'Yves Savourel'" <ysavourel@enlaso.com>, "'Multilingual Web LT-TESTS Public'" <public-multilingualweb-lt-tests@w3.org>
Now it's crystal clear, thank you Yves! >> Yes, it looks correct (just looking at your description >> above) The difference is that in example 4 the span elements are >> never selected, only h:html and h:p are, so the h:span elements >> inherits from the parent h:p. >> In the example 3 the //h:* selector applies translate='no' >> to the h:span elements. Their parent h:p are then set to >> translate='yes', but nothing overwrites the first rule, so the >> children h:span are still set as translate='no' > > [PN]: Ok I didn't see that. > [PN]: Helped a lot, thank very much Yves! The bottom line is inheritance for a given data category applies only to the nodes that have no assigned information yet for that data category. The only way to override a node with already an information is to have either another global rule (later in the list), that select that node, or to have a local attribute. The test outputs of ITS 1.0 show that more clearly when you look at the outputType attribute: For example, in http://www.w3.org/International/its/tests/expected/Translate5-result.xml you can see that the span nodes are set with a 'new-global-value', while in http://www.w3.org/International/its/tests/expected/Translate6-result.xml they are 'inherited'. Cheers, -yves
Received on Tuesday, 23 October 2012 13:22:47 UTC