Exclude target attribute in XML file - works with most elements, not with this one...

Hi Community,

For one customer we have created a file type configuration for XML.

The XML files are bilingual, and the source and target are marked as attributes. The custom file type works well but now new elements were introduced, so I had to add a few more to the parsing list, and there is one that just would not work and I'm not sure what I'm doing wrong.

If the element is not added correctly, the text appears repeated 3-4 times (not only 2) and a bit garbled;

Here we have a sample (attached):

 Screenshot of Trados Studio showing XML code with 'Text' element highlighted indicating an error in parsing.

So I tried to add the ‘Text’ element as well with the same settings so it’s not appearing multiple times but ends at the marked place:

 Screenshot comparing two versions of XML code in Trados Studio with marked differences and errors in text repetition.

However if I add the ‘Text’ element using the other elements as example, I only see this in the file:

Screenshot of Trados Studio displaying repeated lines of text in the preview pane indicating a parsing issue.

For example there is a PreviewDescription element, which was not defined before (as the sample files didn’t contain it), and there as well the content was repeated in the SDLXLIFF, until it was parsed:

 Screenshot of Trados Studio with a segment showing 'PreviewDescription' element marked as 'Not translatable' but incorrectly parsed as 'target'.

So this makes me think I’m missing something in my settings for the Text element.

Please see attached the sample file and the custom file type.

Can you please help?

Thank you!

Greta



Generated Image Alt-Text
[edited by: Trados AI at 4:37 AM (GMT 0) on 5 Mar 2024]
emoji
Parents Reply
  • Thank you 

    I recreated the file type in Language Cloud, but I have the same issue - once I define the 'Text' element:

    Screenshot of Trados Studio showing the 'Parser' settings with a red box highlighting the 'Text' element rule not defined.

    the content is not repeated, but it does not come through at all:
    Screenshot of Trados Studio error message stating 'Converting tag-paired text with no content.'

     The marked content is missing (previously it was repeated in the SDLXLIFF, when the element was not defined):
    Screenshot of Trados Studio XML code with a red box highlighting the missing 'Text' element that is not being parsed correctly.

    Can you please point out where I'm going wrong? The test files are the same, as I have the same issue (the element does not appear neither in Studio nor in Language Cloud when the file is processed with the attached settings, but the other elements are parsed correctly - it's only the Text element I cannot seem to get right):

    https://we.tl/t-LvG5fLVigb 

    Thank you!
    Greta

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 4:37 AM (GMT 0) on 5 Mar 2024]
Children