XML Filter

3 views
Skip to first unread message

Konstantinos Chatzitheodorou

unread,
Mar 24, 2026, 12:39:35 PM (4 days ago) Mar 24
to okapi-devel
Hi everyone,

I am trying to use Okapi with an XML file and a settings file exported from Trados Studio. I would like to understand how to process this XML correctly in Okapi and how to replicate the segmentation and extraction rules from Trados.

Is there any tutorial or documentation that explains how to convert Trados XML filter settings to Okapi filter configurations? Or what is the best approach to recreate the same rules in Okapi?

this is part of my XML
<tmsnode id="9007199465316363" xml:space="preserve">
<title>Title text here</title>
<content/>
</tmsnode>
<tmsnode id="210579723" xml:space="preserve">
<title>Text here</title>
<content>
<table-container type="framed">
<table type="scaled" hsdl-cm="8.74">
<tbody>
<tr>
<td>
<p>Test <b>1</b>
</p>
</td>
</tr>
</tbody>
</table>
</table-container>
</content>
</tmsnode>
<tmsnode>
<metalist>
<meta name="VectorGraphics:facvb135-8fd6-4csdf-8dsdf-62basdf0sdf0">Some text here</meta>
</metalist>
</tmsnode>

And this is part of my settings
<Setting Id="Xml_Translate_Rule_1Translate">no</Setting>
<Setting Id="Xml_Translate_Rule_1XPathSelector">//tmsnode/metalist/meta[@name = 'WebM']</Setting>
<Setting Id="Xml_Translate_Rule_1">True</Setting>

<Setting Id="Xml_WithinText_Rule_2Translate">no</Setting>
<Setting Id="Xml_WithinText_Rule_2XPathSelector">//tmsnode/metalist/meta[@name = 'VectorGraphics']</Setting>
<Setting Id="Xml_WithinText_Rule_2">True</Setting>

Any guidance would be appreciated.

yves.s...@gmail.com

unread,
Mar 25, 2026, 4:57:52 AM (3 days ago) Mar 25
to Konstantinos Chatzitheodorou, okapi-devel

Hi Konstantinos,

 

The XML Filter uses ITS rules to define what is translatable or not.

See https://okapiframework.org/wiki/index.php/XML_Filter for some details and examples.

It seems that you current settings use XPath selectors, which are also used in ITS, so it is likely possible to write the equivalent rules in ITS.

The main ITS data categories you would likely use are:

 

I hope this helps a little bit.

Cheers.

-ys

Reply all
Reply to author
Forward
0 new messages