Skip to main content

XTM Cloud 13.8

XML filter parameters

Important

This module requires some prior knowledge of the XML Path Language ("XPath"). To find out more about XPath, go to https://www.w3schools.com/xml/xpath_intro.asp.

Note

You can create multiple XML configurations for one template, as long as they refer to files with a different root name.

If you have selected XML as the File type, in the Filter configuration, in Configuration > Filter templates, in the relevant popup, you see these parameters and settings for XML and similar file types:

Table 49. XML filter configuration parameters

Parameter

Description

Optional/

Mandatory

Type

Valid values

File type

Use this parameter to specify the file type for which you want to configure filter rules.

Mandatory

Dropdown

Valid values:

  • XML (default).

    If you change from XML to any other value, you will start configuring a filter for a different file type and will no longer see the XML filter configuration parameters described below.

  • MS Excel.

  • MS Excel (Multilingual).

  • MS Word.

  • MS PowerPoint (97-2003).

  • MS PowerPoint.

Root name

Use this parameter to limit your configuration to files that contain specific main XML node(s). In the Root name field, specify these main XML file node name(s).

If you leave this field empty, your configuration is applied to all files, regardless of their root name.

Optional

Text field

Alphanumeric

Maximum of 50 characters in one root name.

Multiple unique values possible. You cannot enter the same value multiple times. To separate the individual values, on your keyboard, use the Space, Enter, or the Comma key.

Include also empty root name

This parameter is displayed if you have entered any values in the Root name text field.

If you select this checkbox, your configuration will also be applied to files whose root name is different from what you have specified in the Root name field.

Optional

Checkbox

Valid values:

  • Cleared.

    If you clear the Include also empty root name checkbox, your settings are only applied to files with the specified Root name.

  • Selected (default).

    If you select the Include also empty root name checkbox, your settings are applied to all files, not only those with the specified Root name.

File extensions

Use this parameter to specify file extension(s) for which your settings are to be applied.

Mandatory

Multiple selection

Select one or more values from the dropdown:

  • dita.

  • ditamap.

  • hhc.

  • hhk.

  • resx.

  • svg.

  • resw.

  • xml (selected by default).

You must select at least one file type.

Reload elements

Use this parameter to import and display unique elements from the uploaded sample source file, in the XML rules list, in the left-hand side pane, automatically.

Optional

Checkbox

Valid values:

  • Cleared (default during edition of an existing filter).

    If you clear the Reload elements checkbox, the elements in the left-hand side XML rules list are NOT reloaded automatically, whenever you upload a new sample source file. So, despite the fact that you have uploaded a new sample file, elements from the previous sample file are still displayed in the XML rules list on the left-hand side of the popup.

  • Selected (default during new filter creation).

    If you select the Reload elements checkbox, the elements in the left-hand side XML rules list are reloaded automatically, whenever you upload a new sample source file. So, if you upload a new sample file, elements from the new sample file are displayed in the XML rules list on the left-hand side of the popup.

Upload file

Use this parameter to upload a sample source file.

Drag and drop the relevant file. Alternatively, click in the file upload field to browse in your documents and find the relevant file.

Once you upload the file, the file upload field is replaced with the preview of your uploaded sample file.

To replace the currently uploaded file with a new one, select the sparkles_brand_refreshed.svg Clear preview button below the preview and confirm it in the Clear preview popup. Now, upload the new file in the file upload field.

Optional

File upload field

Use one of the supported file types:

  • dita.

  • ditamap.

  • hhc.

  • hhk.

  • resx.

  • svg.

  • resw.

  • xml (selected by default).

Upload limit is 100kB.

sparkles_brand_refreshed.svg Clear preview

This parameter is displayed if you have uploaded a sample source file in the Upload file field.

Use it to replace the current sample source file with a new one.

Optional

Button

Valid values:

  • Not selected (default).

    If you do NOT select the sparkles_brand_refreshed.svg Clear preview button, in the right-hand side pane, you see the preview of your previously uploaded sample file.

  • Selected (default).

    If you select the sparkles_brand_refreshed.svg Clear preview button and then select OK in the Clear preview popup, the preview of your sample source file is replaced by the Upload file field. However, the XML rules list is not changed until you upload new sample file with the Reload elements checkbox selected and/or add new XML rules with the Enter XPath parameter.

XML rules list

The XML rules list is displayed on the left-hand side of the popup. In it, you see XML rules which have been uploaded automatically, based on your uploaded sample file (if you have selected the Reload elements checkbox) and/or elements which you have added using the Enter XPath field.

Use the XML rules list to:

  • decide on the element hierarchy.

  • select element(s) for translation.

  • edit the relevant element(s).

  • delete the relevant element(s).

Optional

Display field

All entries use XML Path Language ("XPath").

In the XML file elements preview, you see:

  • the All checkbox – use it to select all XML file elements for translation:

    • Cleared (default) Checkbox_disabled_brad_refreshed.svg – None of the XML file elements displayed in the XML file rules list are sent for translation.

    • Selected Checkbox_enabled_brad_refreshed.svg – All XML file elements displayed in the XML file rules list are sent for translation. If you have uploaded a sample file, the whole file content is highlighted yellow, in the right-hand side pane.

    • Indeterminate Checkbox_minus_partially_selected_brad_refreshed.svg – Displayed if you have selected any individual XML file element for translation. Only the selected XML file elements are sent for translation. Their content is highlighted in yellow, in the right-hand side pane. If you select the All checkbox now, all XML file rules displayed in the list will be selected and sent for translation.

  • checkbox(es) next to the relevant rule(s) – use them to select the relevant XML file element(s) for translation:

    • Cleared (default) – the relevant XML file element(s) are NOT sent for translation.

    • Selected – the relevant XML file element(s) are sent for translation. If you have uploaded a sample file, content that is sent for translation is highlighted yellow, in the right-hand side pane.

  • Once you hover over the relevant XML rule, you see:

    • the vertical grip dots icon grip-dots-vertical-solid_FFB_regex_priority.svg, located to the left of the relevant rule – use it to change the position of a particular rule in the list. The position in the list indicates which rule is a parent and which are the child elements. Child elements inherit setting from their parent. However, inheritance does not override settings that have been introduced by another rule.

    • the edit icon pen-solid.png– use it to edit the relevant rule. Make your changes in the text field. To confirm them, select the Apply icon green-tick.svg. To cancel your changes, select the Cancel icon close_X-mark_from-UX-team.svg.

    • the delete icon trash-solid.svg – use it to permanently delete the relevant rule.

Enter XPath

Use this field to add XPath rules that you will use in your configuration.

Optional

Text field

Use XML Path Language ("XPath").

Once you have finished typing an individual XPath rule, select the Add button to display it in the XML rules list and start using it.

More options section

Show HTML tags as inline tags

To display this parameter, expand the More options section. To do so, at the bottom of the popup, select chevron-down_brand_refreshed.svg More options.

Use this parameter to display HTML tags as inline tags, in XTM Workbench.

Optional

Checkbox

Valid values:

  • Cleared (default).

    If you clear the Show HTML tags as inline tags checkbox, HTML tags are NOT displayed as inline tags, in XTM Workbench.

  • Selected.

    If you select the Show HTML tags as inline tags checkbox, HTML tags are displayed as inline tags, in XTM Workbench.

Preserve whitespaces by converting them into inline tags

To display this parameter, expand the More options section. To do so, at the bottom of the popup, select chevron-down_brand_refreshed.svg More options.

Use this parameter to preserve whitespace characters by converting them into inline tags, in XTM Workbench.

Optional

Checkbox

Valid values:

  • Cleared (default).

    If you clear the Preserve whitespaces by converting them into inline tags checkbox, whitespace characters are NOT displayed as inline tags, in XTM Workbench.

  • Selected.

    If you select the Preserve whitespaces by converting them into inline tags checkbox, whitespace characters are displayed as inline tags, in XTM Workbench.