Action Item: http://www.w3.org/2006/04/20-i18nits-minutes.html#action08 (process="no" flag)

Hi there,

Here's my proposal (which could for example be added to the
http://www.w3.org/International/its/itstagset/itstagset.html#introductio
n).

Best regards,
Christian

---

In certain cases, it is necessary to attach ITS information to element
nodes (as opposed to text nodes). An information architect may for
example have to express that all images (which in his XML vocabulary are
referenced via an "src" attribute on an "img" element) should not be
translated.

>From the point of view of ITS selection, this requirement poses a
challenge since the default selection of the ITS data categories and the
use of XPath do not cater for the attachment mechanism that is needed.
ITS masters the challenge in a fashion which is similar to XSD: The
introduction of a specific "its:processContents" attribute. A value
of "no" for this attribute instructs ITS processors that no processing
is necessary. This way, ITS allows the declaration of information
without enforcing its processing.

The example below exemplies how "its:processContents" can be used with
"its:translateRule" in order to attach ITS information to various
aspects of graphics:

- The first two "its:translateRule" specify that the values/text of the
"src" and the "alt" attributes have to be translated, and that the ITS
processor needs to attach the ITS translate data category to the
corresponding nodes. 
- The third "its:translateRule" specifies that the graphics (the "img"
element) has to be translated as well. The "its:processContents="no",
however, tells the ITS processor that it does not need to attach the ITS
translate data category to the corresponding nodes.

<text>
 <head></head>
  <its:rules>
   <its:translateRule its:selector="/img/@src" its:translate="yes"/>
   <its:translateRule its:selector="/img/@alt" its:translate="yes"/>
   <its:translateRule its:selector="/img" its:translate="yes"
its:processContents="no"/>
  </its:rules>
 <body>
  <img src="w3c_home.png" alt="W3C"/>
 </body>
</text>

Received on Monday, 24 April 2006 13:59:09 UTC