Defining structure information properties
Use structure information to show the context of a structure element inside an XML document. For example, you can specify that an element is a <title> so that translators can consider this context when translating the content of this element. Titles may need to be translated differently than the text in the body of a document
About this task
The information that you specify here is visible in the Document Structure column of the Editor view.
Structure information is called Context on the XML Parser dialog box.
Opening the Structure Information Properties dialog box
To open the Advanced Tag Settings dialog box:
Procedure
Adding or editing structure information
Click the Add or Edit button on the Structure Information Properties page to display the Add Structure Information or Edit Structure Information. Here you can customize the properties of a structure element.
About this task
| Box | Description |
|---|---|
| Standard | Offers a list of standard XML structure elements with predefined context information. Choose Custom if you want to create your own element and customize its context information. For example, if you select List, SDL Trados Studio automatically adds default preset structure properties. All LI elements in the XML documents processed with your XML file type will be displayed as Choose Custom if you want to add custom Name, Code, Identifier, Description and Color properties for your structure element. |
| Purpose | Choose Match if you want Studio to store the document structure information as additional information in the translation memory. Studio will then use this information during context matching when doing a lookup in the translation memory. Choose Information if you do not want to store document structure information when confirming the segments that include the content of your XML element. |
| Name | If you selected Custom in the Standard field, you can give a custom name for your structure element. This is displayed in the Location column when you click on the |
| Code | Code is the abbreviation of an XML element. Codes show where the segment text appears in the XML document. Studio displays the code of a structure element in the Document Structurecolumn of the Editor. For example, a Heading element is displayed as If you selected Custom in the Standard field, you can give a custom code for the structure information of your element. A plus sign next to a code indicates that the segment includes more than one document structure information |
| Identifier | A unique identifier which Studio can then use for other tasks like processing embedded content. |
| Description | If you selected Custom in the Standard field, you can add custom description for your structure element. This is displayed in the Additional Information column when you click on the |
| Set description from content of this relative XPath | If the description is not set, you can use an XPath in this text box to pull out a value from the XML document to use as a description. For example, you have the following element: In this box, you can specify the XPath |
| Color | If you selected Custom in the Standard field, you can choose a custom highlighting color for displaying your element in the Document structure column. For example, default List elements are always displayed in light green whereas Heading elements are highlighted with dark green |
| Formatting | Choose how Studio displays the content of your element in the Editor view. |