We create a parser rule that causes the translation editor to display the document structure information in yellow.
This example builds on the topic
Example - Creating an XML File type, XML-Letter, and assumes you have created the XML file type
XML-Letters.
- Navigate to the Add Structure Information window.
- Open the file type settings for XML-Letters, find the parser rule for the element <salutation> and click Edit
- In the Edit Rule window, click Edit next to the Structure info box.
- In the Structure Information Properties window, click Add.
- Create structure information with the following properties:
- Standard: Custom
- Purpose: Information
- Name: Salutation
- Description: A formal greeting used in a letter. (This text will be displayed when the translator clicks on the document structure column.)
- Click OK till you have closed the dialog boxes.
To see the effect:
- Open the example letter file (example-xml-file-letter.xml in the editor. Look at the entries in the document structure column and note that <salutation> entries are in yellow.
- To see all the structure information for that element, click an entry in the document structure column.