How can I treat CDATA as inline content?

Hello, everyone.

I have several XML files where CDATA markup appears within segments.  For example:

The <![CDATA[<em>]]> tag is used to show emphasis.

Studio seems to split this into three segments by default.  I'd like to handle this content in the way TagEditor handled it--by converting the CDATA markup to placeables within a single segment.  I have been unable to achieve this using File Type options.  The only solution that has come to mind is to make some RegEx replacements in my XML files: replace the illegal XML characters contained within CDATA markup with their XML entity values, then either remove the CDATA markup completely or replace it with made-up XML tags that would allow me to restore the file to its original appearance after translation.

Is there a way to get Studio to handle this type of content as a single segment without modifying the files beforehand?

Parents Reply
  • Hello Paul,

    we are struggeling with the same problem.

    Here is a sample of the XML code:

    <xsl:variable name="hinweis-platzhalter">Bei den Operatoren <![CDATA[<em>]]>ist gleich (=)<![CDATA[</em>]]> und <![CDATA[<em>]]>ungleich<![CDATA[</em>]]> können die
    Platzhalter <![CDATA[<em>]]>*<![CDATA[</em>]]> und <![CDATA[<em>]]>?<![CDATA[</em>]]> verwendet werden.</xsl:variable>

    We use a custom filetype liek this:

    But that is the result:

    As you can see segment 14 to 22 should be normally just one segment. The tags are not the problem, but we are not able to avoid the splitting after every CDATA-tag.

     

    Thank you very much in advance.

Children