Configuring the plain text embedded content processor
When you are working with an XML file that contains chunks of embedded plain text, for example in a CDATA section, you can assign an embedded content processor to handle the sub-content separately.
About this task
When you assign an embedded content processors for plain text, Studio 2014 SP1 and later handles embedded plain text as different file within the XML document. This enables you to set custom settings for extracting and displaying correctly the content of the plain text embedded in the XML file.
To assign the embedded content processor for plain text embedded in an XML file:
Choose the XML file type that will 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 XML document (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 that will handle the plain text embedded in your XML document
Procedure
Set processing rules for the Plain Text embedded content processor
Procedure
- On the Options or Project Settings dialog box, expand .
- On the Document structure page, add regular expressions to define which bits of the plain text embedded in the XML document should be extracted as translatable text. For more information, see Text (Regular Expression Delimited Text) Settings.
- On the Inline tags page, add regular expressions to define which bits of the plain text embedded in the XML document should be converted to inline tags and how Studio will display these in the Editor view. For more information, see Text (Regular Expression Delimited Text) Settings.
- Click OK to save your changes and close the Options/Project Settings dialog box.