Configuring the HTML 5 Embedded content processor
When you are working 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, Studio 2014 SP1 and later handles embedded HTML 5 content as a different file within the *.xml document. This enables you to set custom settings for extracting and displaying correctly HTML 5 content embedded in the *.xml file.
To assign the embedded content processor for HTML 5 content in an *.xml file:
Choose the XML file type to process your *.xml document
Procedure
- Click to change the global XML settings or to change the XML settings for the current project only.
- Expand the XML file type relevant for your
*.xmldocument (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. For more information about creating a custom file type, see Creating a File Type.
Enable the Embedded content processor to handle the HTML 5 content embedded in your *.xml document
Procedure
Set processing rules for the HTML 5 embedded content processor
Procedure
- On the Options or Project Settings dialog box, expand .
- On the Parser page, add parser rules to define how to extract for translation the HTML 5 content embedded in an
*.xmlfile. For more information about setting HTML parser rules, see HTML Parser and Add/Edit/Copy Rule Page. - On the Entities page, specify how to display HTML character entities in the Editor view. For more information about entity conversion and entity mapping, see HTML Entities.
- On the Whitespace page, define how Studio should deal with any extra whitespace characters it finds in the HTML 5 content embedded in the
*.xmlfile. For more information about normalizing whitespace, see HTML Whitespace. - Click OK to save your changes and close the Options/Project Settings dialog box.