Parser rules describe the structure on an XML file type. Each parser rule specifies how Studio treats matching XML elements. The parser rule categorizes elements (for example as translatable or not-translatable), and assigns a tag type. You set these rules, for each XML file type, by using the Parser Rules dialog box.
A parser rule has the following key components:
Content is translatable if any of the following is true:
The following parser rule specifies all elements that have the attribute value pair 'translate=yes', and ensures that these elements are presented for translation:
//*[@translate="yes"]
This specifies that the rule applies to all elements that have the attribute translate with the value yes.
Add the translate setting in the Properties group, Translate box.
The SDL file type software uses XPath to specify elements, and you too can use XPath. However, you can also specify the element more simply in the Add/Edit Parser Rule dialog box.
//*[@translate="yes"]We can break down this expression as follows: