I had this problem with XLIFF 1.2. When I try to implement the same or similar fix it isn't working. Here is what my en XLIFF looks like:
<?xml version="1.0" ?>
<xliff srcLang="en-US" trgLang="en-US" version="2.0" xmlns="urn:oasis:names:tc:xliff:document:2.0">
<file id="en-US.xlf">
<unit id="i18n.infra.config.tools.uiLabel.mim">
<notes>
<note appliesTo="source">Name of MIM tool</note>
</notes>
<segment>
<source>MIM</source>
<target>MIM</target>
</segment>
</unit>
Here is my line from XFG
<?xml version="1.0" encoding="UTF-16"?>
<CXMLRules>
<RuleList>
<CXMLRule m_strName="XLIFF Project" m_bResolveExternal="False">
<RootElements>
<RootElement Name="xliff"/>
</RootElements>
<ResTypes/>
<RuleData>
<CXMLGroup ElementName="file" IDAttributeName="Id" HandlingOfGroups="1"/>
<CXMLData ElementName="unit/segment/source" IDAttributeName="id" TElementName="target" IsTElement="True" HandlingOfWhiteSpaces="0" HandlingOfEmbeddedElements="0" AppendElementNameToID="False" UseSegmenter="False">
<Attributes>
<CXMLAttribute AttributeName="parent::*/descendant::alt-trans/source | parent::*/descendant::alt-trans/target,multiple" CopyAttributeName="False" AttributeAction="0"/>
<CXMLAttribute AttributeName="parent::*[attribute::translate='no']/attribute::translate" CopyAttributeName="False" AttributeAction="1"/>
<CXMLAttribute AttributeName="parent::*[attribute::translate='yes']/attribute::translate" CopyAttributeName="False" AttributeAction="2"/>
<CXMLAttribute AttributeName="ancestor::group/context-group/context[attribute::context-type='IGNORE_IT'][text()='YES']" CopyAttributeName="False" AttributeAction="3"/>
<CXMLAttribute AttributeName="ancestor::group/context-group/context[attribute::context-type='IGNORE_IT'][text()='NO']" CopyAttributeName="False" AttributeAction="4"/>
<CXMLAttribute AttributeName="parent::*/pdns:notes/pdns:note/attribute::applies-to | parent::*/pdns:notes/pdns:note,valueid" CopyAttributeName="False" AttributeAction="0"/>
I had to change CMLData ElementName to "Unit/segment/source" to get the strings to come into Passolo.
I there any good documentation that describes the XML tags and options? The Passolo doc is pretty thin. I have two projects now that have different formats and would like to better understand what these lines are doing and how I can use them to my advantage. Neither project has used a tool like Passolo. So we are evaluating to see if it will work for our validation efforts.