ITS - Example 11 of the specification

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