Analysing WordPress XML files

Hello,

I'm analysing an XML exported from WordPress and need to hide text in within [] and turn some text into tags. I have created a new file type, added the //* XPath rule (set as not translatable) and indicated which rules are translatable, which seems to have worked. At the embedded content (Legacy) stage, I have selected 'enable embedded content processing', added CDATA and then added tags. However, when opening the file in Editor, the text within [] still displays, even though I have set this as a placeholder, and Trados does not seem to turn opening tags to actual tags in the editor, only the closing ones. Does anyone have any advice for how to fix this?

Thanks in advance!

Parents Reply Children
  • Perhaps this is where the problem lies... the CDATA code is incorrect.  This:

    <content:encoded><![CDATA[[mk_page_section

    Should be this:

    <content:encoded><![CDATA[mk_page_section

    I think you are not correct, Paul.

    The point is that the "mk_page_section" thing is enclosed in square brackets... i.e. the seemingly superfluous opening square bracket should be there.

    <![CDATA[[mk_page_section bg_image="/wp-content/uploads/2016/06/background-template-3.jpg" attachment="fixed" bg_position="center bottom" bg_repeat="no-repeat" bg_stretch="true" enable_3d="true" speed_factor="0.8" video_loop="false" min_height="500" padding_top="0" padding_bottom="0" el_class="heroContainer" sidebar="sidebar-1"][vc_column][mk_padding_divider size="50" visibility="hidden-sm"][vc_row_inner][vc_column_inner]...