The XML parser rules tell SDL Trados Studio how to process the elements found in XML documents. These rules dictate what content is extracted for translation and how this content is displayed in the Editor view.
This page lists the XML parser rules that Studio considers when processing XML documents. You can add, delete or modify these rules by using the Add, Edit or Remove buttons on this page.
|
Option |
Description |
||
|
Search For |
Type a rule name in this field to search for an existing XML parser rule. Studio automatically jumps to the first rule corresponding to the search criteria. |
||
|
|
Use the |
||
|
|
If you use the same name (but specify different settings) for multiple rules, Studio prioritizes the most general one, with the least conditions assigned. You can use the |
||
|
Rule |
The syntax that defines a parser rule. You define this syntax when you fill in the Element, Attribute or XPath fields on the Add Rule or Edit Rule page. When an element or attribute in the XML document matches this rule, Studio applies the settings specified on the Translate, Tag Type, Context and Formatting columns. |
||
|
Translate |
Shows whether the XML elements that match the corresponding rule can be edited for translation in the Editor. Depending on the tag type, untranslatable content might not be displayed in the Editor. Double-click on a rule to open the Edit Rule dialog box and change the Translate property. |
||
|
Tag Type |
Shows how the XML elements will be displayed in the Editor:
|
||
|
Context |
Shows the Structure Information properties specified for a structure element. Double-click on a rule then click Edit next to the Structure info section to change the information about the context of an element inside an XML document. The information that you specify here is available in the Editor view, in the Document Structure column and the Document Structure tree. |
||
|
Formatting |
Shows the formatting settings for displaying the contents of an inline tag in the Editor. |
||
|
Import
|
Click this to import parser rules settings that were created for a different file. You can also import rules when creating a new XML file type in the Creating a File Type wizard.
|
||
|
Remove |
Select a parser rule and click this to delete this rule from the list of rules that Studio considers when parsing an XML document. |
||
|
Disable/Enable |
Select a parser rule and click this to disable or enable an existing rule for parsing XML elements. If a rule is disabled, Studio no longer consider it when extracting XML content from your XML documents. |
||
|
Add/Edit |
Click this to display the dialog box that allows you to change the XML parser rules and their settings. For mor information, see Adding or Editing an XML Parser Rule. |
Codes in the Document Structure Column