How to set an XML comment either as segment separator or inline element

Hi there,

let's assume that I've got this XML text:

<test>
<text>This is<!-- comment in segment--> test text.</text>
</test>

How can set in the XML2 parser, if the XML comment works as a segment separator (like a structure element) or as an inline tag? Can this be set via an XPATH definition?

Thank in advance!

Best regards,

Bodo

emoji
Parents Reply
  •  

    Thanks Patrik... although that wasn't the question.  This is more about the handling of tags that appear at the start of the sentence, or the end.  Trados Studio shouldn't ignore the need to always include them, but it does.

    If it's only the comment, then your point is understood since this is handled automatically anyway because we don't provide a mechanism to control it.  So I get this would be a bigger job.  But the ask here relates to normal tags that we can control, and can set a rule to say "Always include me with the text".  Currently, Studio is ignoring this rule.

    Paul Filkin | RWS

    Design your own training!
    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
Children