Documentation Center

Creating custom XML 2.0 file types

You can create custom XML file types to process specific files from a third-party application.

Procedure

  1. 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.
  2. Expand the File Types pane.
  3. In the File Types pane, click New.
  4. On the File Type Information page, select XML 2. Next, specify your custom information:
    1. File type name (mandatory) - Enter a user-friendly name for the file type. This is the name that will appear in the navigation tree.
    2. 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.
    3. File type identifier (mandatory) - Enter a unique identifier for this set of file types.
    4. Name of individual document - This appears in the Save as dialog, which is displayed when you close the file.
    5. 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.
    6. 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.
    7. You can also write down a description for your file type under Description. This can later help you identify this custom file type.
  5. 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.
  6. 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.
  7. On the File Detection page, specify the settings.
  8. On the Namespaces page, map the namespaces for the source XML files.
  9. On the Parser Rules page, specify the parse rules Trados Studio uses to separate translatable from non-translatable text.
  10. Click Finish.
    The new, custom file type appears in the File Types navigation tree.