slide 27
Copyright © 2005 W3C (MIT, ERCIM, Keio)
Translate
Data categories
translateRule element containing:
selector attribute required, value is XPath expression selecting nodes to which rule applies
translate attribute required, value " yes " or " no "
<its:rules>
<its:translateRule translate="yes" selector="//acronym/@title"/>
</its:rules>
Global use:
Note: global rules needed to specify translate information for attribute text in content.
Go to previous slide Go to next slide Go to the first slide Go to the slide index Go to the PDF version
Slide 27 of 50
This example says that all title attributes on acronym elements in the document should be considered for translation. Remember that the default is that attributes are left untranslated. (Note that acronyms can change during translation, so title attributes that contain the expanded version of the acronym may also need to be translated.)
It is very useful to be able to say whether specific attributes are to be translated or not. This can only be done in ITS using global rules.
"