Documentation Center

Configuring the HTML 5 embedded content processor

When you work with an *.xml file that contains chunks of embedded HTML 5 content, for example in a CDATA section, you can assign a dedicated embedded content processor to handle this sub-content separately.

About this task

When you assign an embedded content processors for HTML 5, in an *.xml file, Trados Studio 2015 SP1 and later handles embedded HTML 5 content as a different file within the *.xml document. This enables you to specify custom settings for extracting and displaying the HTML 5 content, embedded in the *.xml file, correctly.

Procedure

  1. Choose the XML file type to process your *.xml file. 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, select Project Settings.
    • For all future projects, go to File > Options.
  2. Expand the File Types tree and select the XML file type relevant for your *.xml file (XML: Microsoft .Net Resources, XML: Oasis DITA 1.2 Compliant, XML: Oasis DocBook 4.5 Compliant) or create a new XML (Embedded Content) file type.
  3. On the Embedded content page of your XML file type:
    1. Select the Process embedded content using the following processor checkbox.
    2. Choose HTML Embedded Content 5.2.0.0 from the drop-down menu.
  4. Specify where Trados Studio should look for embedded content in the *.xml file. Choose the CDATA section options to process all HTML 5 content embedded in CDATA sections. Choose Document structure > Add... to define a more specific element where to look for embedded HTML 5.
  5. Expand the Embedded Content Processors tree, and select HTML 5.
  6. Select the Parser page, and add parser rules to define how to extract for translation the HTML 5 content embedded in an *.xml file.
  7. On the Entities page, specify how to display HTML character entities in the Editor view.
  8. On the Whitespace page, define how Trados Studio should deal with any extra whitespace characters it finds in the HTML 5 content embedded in the *.xml file.
  9. Select OK.