Configuring XML 2 Any XML file types

You can configure XML Any XML settings to customize the way this file type is processed during translation or review.

Procedure

  1. To configure file type settings, go to:
    • Projects view > Home > Project Settings, for the active project.
    • File > Options, for all future projects.
  2. Expand File Types and select XML 2: Any XML.
  3. On the Writer page, customize encoding and attribute values
    • Choose when to add Unicode UTF-8 byte order mark (BOM) in the target file:
      • Preserve; don't add if not originally present - does not add byte order mark if the source file is encoded with UTF-8 without BOM.
      • Preserve; add if not originally present - adds byte order mark if the source file is encoded with UTF-8 without BOM.
      • Remove if present - removes byte order mark if the source file is encoded with UTF-8 with BOM.
    • Choose action for xml:lang attribute values:
      • Change matching source language to target language - converts XML Entities from entity references to characters. For example, converts the greater than XML entity &gt to the greater than character >.
      • Always change to target language - changes XML language attribute to target language in the source file.
      • xPath rule - does not change xml language attribute.
  4. On the Entities page, customize entity conversion
    • Convert numeric entity reference to inline placeholder tags - converts XML entities represented by numerical reference to inline placeholder tags.
    • Enable entity conversion - converts XML Entities from entity references to characters. For example, converts the greater than XML entity &gt to the greater than character >.
    • Skip conversion in locked content - skips over XML entities found in locked content.
    • Entity mappings - displays the following information about XML entities. Click on an item in the Entity conversion listbox to see the mappings:
      • Name - name of the XML entity.
      • Char - corresponding character of the XML entity.
      • Unicode Value - unicode value of the XML entity.
      • Read as character - reads the XML entity as character.
      • Write as entity - writes the XML entity as XML entity instead of character.
  5. On the Namespace page, provide mapping for namespaces used in the source file.
    • prefix - defined name for a namespace. For example, xmlns:prefix=”http://website”.
    • URI - unique identifier associated with the namespace. For example, xmlns:prefix=” http://website”.
  6. On the Whitespace page, customize whitespace processing:
    • Specify how to process Whitespace in content:
      • Always preserve - does not modify whitespaces found in the document.
      • Normalize unless xml:space='preserve' - replaces only the whitespaces which do not have the xml:space='preserve' attribute.
      • Always normalize - replaces all whitespaces found in the XML element with a single space, ignoring any xml:space='preserve' attributes.
    • Normalize whitespaces inside attribute value - replaces all whitespaces found inside the attribute value with a single space.
  7. On the Preview page, add all files required to preview your file (CSS, images, etc) by clicking Add. If your file does not require additional files for preview, skip this step.
  8. On the Validation page, customize how to validate files:
    • Perform schema and DTD validation during file detection - checks if format, structure or Document Type Definition is valid. In case of errors, you can choose to:
      • Treat all validation warnings as file parsing errors - considers validation warnings to be file parsing errors and blocks Trados Studio from opening the file.
      • Report warning if no DTD/schema can be found - presents a warning if there is no valid DTD/schema.
    • Manually specify schema - overrides schemas referenced in the file with the Master schema that you specify. Click Add to add master schemas. Validate files with master schemas for:
      • Use for all XML documents - overrides schema of all documents with the specified Master schema.
      • Use only for documents which don't specify DTD/schema - overrides schema only for documents that don't specify DTD/schema.
  9. On the QuickInsert page, customize the QuickInsert settings for the QuickInsert group for this type of file.
  10. Click OK to close the window.