The topic describes an example of how to create an XML file type that contains a filter with instructions on how SDL Trados Studio handles that specific XML file type.
If you want to follow the steps below in SDL Trados Studio, click the links to download the sample files.
Sample Transformation File (XSL)
In this Topic: Hide
Select Tools > Options from the menu bar. The Options dialog box is displayed.
Select File Types from the navigation tree. The File Types page is displayed on the right.
Click New. The Select Type dialog box is displayed. Select XML and click OK. The Create File Type wizard is displayed on the File Type Information page.
Complete the File Type Information page of the wizard:
Change the file type name to XML_Letters and enter a suitable description.
Do not change the data in the remaining boxes. In particular, we assume that files of this new file type will have a file name extension xml. The specific type of this file type will be identified by the file contents.
Click Next. The XML Settings Import page is displayed. Select Define settings based on INI, ANL, XML, XSD, or ITS rule file:. Locate and select the sample.xml file.
Click Next. The Parser rules page is displayed.
Create a rule to identify the content as the specific XML format. For details on the parser rules settings to apply, see XML Example: Parser Rules.
Click Next. The File Detection page is displayed.
This file type is defined by the root element. To set this, on the File Detection page of the wizard, click the Add button next to the Any of the following root elements box. The Add Root Element dialog box is displayed.
Enter letter, then click OK.
Click Next. The Save File Type page is displayed.
Click Finish to create the new file type. The new file type is added to the navigation tree under File Types.
Save the contents of the topic Sample Transformation file for XML Example to a file. To do this copy the text from the Sample Transformation file for XML Example topic to Notepad and save as transformation.xsl.
Select File Types > [name of new file type] > Preview. from the navigation tree. The Preview settings are displayed on the right.
Click Select. The Open dialog box is displayed.
Locate the transformation file and click Open. The file is added to the Preview page.
Click OK to save your settings close the dialog box.