Creating custom XML 2.0 file types
You can create custom XML file types to process specific files from a third-party application.
Procedure
- Decide for which projects you want to configure file type settings:
- For the active project, go to the Projects view, and on the Home tab, click Project Settings.
- For all future projects, go to File > Options.
- Expand the File Types pane.
- In the File Types pane, click New.
- On the File Type Information page, select XML 2. Next, specify your custom information:
- File type name (mandatory) - Enter a user-friendly name for the file type. This is the name that will appear in the navigation tree.
- File type icon (optional) - Select Browse to select an icon. Existing file types use icons from the installation assembly. You cannot browse for these icons. This appears alongside the file name.
- File type identifier (mandatory) - Enter a unique identifier for this set of file types.
- Name of individual document - This appears in the Save as dialog, which is displayed when you close the file.
- Name of document category- This is displayed in the drop-down list associated with the File open dialog, which is displayed when you open the file.
- File dialog wildcard expression - Specify a wildcard name expression for this file type. When you open the file during translation, the Open Document dialog displays this expression in a drop-down list.
- You can also write down a description for your file type under Description. This can later help you identify this custom file type.
- On the Parser Rule Type page, select the format you want to use for the parser rules:
- Xpath rules - Specify the XPath directly.
- Element rules -Specify the XPath by providing an element name.
- On the XML Settings Import page, decide if you want to:
- Create an XML file type based on the default settings
- Create an XML file type based on imported XML, sdlftsettings or XSD rule files.
- On the File Detection page, specify the settings.
- On the Namespaces page, map the namespaces for the source XML files.
- On the Parser Rules page, specify the parse rules Trados Studio uses to separate translatable from non-translatable text.
- Click Finish.
The new, custom file type appears in the File Types navigation tree.