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

ITS - Example 11 of the specification

From: Yves Savourel <ysavourel@translate.com>
Date: Mon, 23 Jan 2006 11:23:35 -0700
To: <public-i18n-its@w3.org>
Message-ID: <002901c6204a$1ff841b0$8f05a8c0@Breizh>

Hi,

I was wondering about the Example 11 (Example for using schemaRule and documentRule together in a schema):

...
<its:documentRule translate="no" translateSelector="//p[@editor='john']"/>
<!-- This rule holds for p elements which are edited by John. -->
...

First: Also: shouldn't <documentRule> be in a <documentRules>?

Second What does it mean exactly?
A) That any //p[@editor='john'] in the *schema* should not be translated,
or B) that any //p[@editor='john'] in instances of the document type describe in the schema should not be translated?

My understanding is that such documentRule would apply to the document where it's located, therefore A), the schema.

- is that correct?

- if it's corect, the example is a bit confusing: it may be better to use an example with a selector that point to something visible
in the example (some comments for example(?))

- As far as I know we don't have a "delivery" mechanism for documentRule elements except that when within a document instance they
applies that that document. But for stand-alone rules (in a separate file) we don't define how to associate them with the documents
(which is probably fine(?)).

Just thinking aloud...
-yves
Received on Monday, 23 January 2006 18:23:45 UTC

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