This is a small part of the XML but it's where the problem can be found:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"[]>
<?ish ishref="GUID-30A044EB-6781-42AA-8E66-6F2BEA18DDD9" version="20" lang="fr" srclng="en"?>
<topic id="GUID-30A044EB-6781-42AA-8E66-6F2BEA18DDD9" xml:lang="fr">
<body cid="tDdOC">
<strow cid="23ohnL">
<stentry cid="2HSQLH">
<note type="caution" id="GUID-692BEE2D-DEC3-4235-B182-192CF3F9BDCB">
<p cid="1nxlD5">It is highly recommended to use
<msgph varref="minoclairname">ABX <cmdname cid="t780e"></cmdname></msgph> for these cleaning operations. Refer to the Material Safety Data Sheet for handling precautions.
</p>
</note>
</stentry>
</strow>
</body>
</topic>
After the sentence "recommended to use" there is a space I need to keep. I need the following rules among others.
ONLY the msgph elements with an attribute varid and an attribute translate="yes" should be translated. Never translate msgph elements if there is a varref attribute even if there is a translate="yes" attribute. (msgph elements always have a varid or varref attribute)
In Studio XML parser from higher to lower priority.
//msgph[@varref] : not translatable, inline, whitespace inherit from parent
//msgph[@translate='yes'] : translatable but in protected mode, inline, whitespace inherit from parent
msgph : not translatable, inline, whitespace inherit from parent
When adding //msgph[@varref] studio 2014 sp2 removes the space after "to use". It shows the lock for the msgph element as expected.I have some wordarounds like linarize the XML file or always preserve the whitespace in the p element or in the general whitespace options of the filetype but I's prefer not do it that way.