How to exclude an XML element in a certain structure but keep it as translatable in other structures?

Hi,

I'm trying to create a parser rule for a custom XML filetype in Trados Studio. I want to exclude the element <title> when it is a child element of  <infopages> and <document>. I have tried creating an Xpath rule but I don't get it to work.

Could you help me please?

Thanks!



Generated Image Alt-Text
[edited by: Trados AI at 4:35 AM (GMT 0) on 5 Mar 2024]
emoji
Parents
  • I guess this:

    //INFOPAGES/DOCUMENT/TITLE

    So I did it the other way around and instead of excluding I only included.

    Worth noting that your XML is invalid.  The ENTITY_PATH has no closing element.

    Always helpful to include a sample if you want help like this because on a more complex example we'd have to recreate the file first and this would probably mean you lower the chances of getting help.

    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

Reply
  • I guess this:

    //INFOPAGES/DOCUMENT/TITLE

    So I did it the other way around and instead of excluding I only included.

    Worth noting that your XML is invalid.  The ENTITY_PATH has no closing element.

    Always helpful to include a sample if you want help like this because on a more complex example we'd have to recreate the file first and this would probably mean you lower the chances of getting help.

    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

Children