XML Validation Error. Trados 2014

When verifying the translation I get an error message:

The element 'menucascade' cannot contain text. List of possible elements expected:'uicontrol sfigure'

 

And I am unable to identify where exactly the error is coming from. Clicking on the message does not lead to any specific segment. How can I fix it?

 

Thanks

Parents
  • Hi 

    This error may not matter. As you're using SDL Trados Studio 2014 it may be that the XML is of a more recent format than Studio 2014 was programmed for.

    Are you able to save as Target successfully?

    All the best,

    Alison

  • Hi
    Thanks for the response. In fact, the sequence of events was like this: a colleague of mine translated the files with Studio 2017 sent the files to me, and I only created a return package without any modification. Then the client discovered the error (they also use Studio 2017)
  • Hi again 

    In that case, it may well be due to the difference between formats used at the time of Studio 2014 and Studio 2017.

    However, the text of the error indicates that there is a sequence of elements/tags that should not contain text but text has been inserted. This can prevent saving to target format.

    For example...

    <stichworteintrag><haupt>Boiler, cleaning</haupt><unter>with brush</unter><stichworteintrag>

    The above is a simple index entry and would appear like this in the final PDF:

    B

    Boiler, cleaning

    - with brush...……………………….200

    (page number)

     

    If, however, the translator had typed any text between any of the end and starting tags, for example:

    <stichworteintrag><haupt>Boiler, </haupt>cleaning<unter>with brush</unter><stichworteintrag>

    the XML reimport process would throw an error and fail.

     

    However, for example, the 'cannot contain text' error can also be triggered if a correct element is present that was not included the relevant XML file type in the version of Studio the error is triggered by.

    Before I continue with further speculation, could either of the above describe what has happened in your scenario?

    I should also point out that you can see the full tag text by clicking the relevant button on the View ribbon tab, here:

    Screenshot of Trados Studio error message indicating a sequence of elements or tags that should not contain text but text has been inserted, preventing saving to target format.

    The document has to be open to access the above setting.

    Let me know if any of the above helps...

    All the best,

    Alison

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 1:46 PM (GMT 0) on 28 Feb 2024]
  • Hi  ,
    What you described may very well be the case. The problem is actually identifying this potential source of error among several thousand strings. Is there a way to do it (other than manual)?
    Thank you

  • Hi 

    Maybe, partially. For example, in Studio 2017 it is possible to search for elements or tags using the Advanced Display Filter, thus:

    Trados Studio Advanced Display Filter window with 'menucascade' typed in the Source text field and the Apply Filter button highlighted.

    Then only the segments with the menucascade element will be displayed, which will narrow down the search field to only those segments containing that element. Then you can search visually - or you could use Ctrl+F to search for a frequently-used letter of the alphabet that might flag up text in the wrong place. This is very much a patchwork workaround, though.

    If the menucascade element is not actually in a segment then you can't search for it (there is extra content visible if you click on the 'All content' display filter but you can't use the software to search in the non-segment content and there is also content that is behind that which is visible via 'All content').

    Another workaround I use with XMLs if I'm able to generate the target XML is to open it in Trados TagEditor because that sometimes more precise at showing exactly where this type of error is happening... Do you have TagEditor (the Trados translation software before Studio 2009 came out).

    I'll wait to see if either of the above suggestions helped before making any further suggestions. There may be an app available on the SDL AppStore that can search more precisely also...

    All the best,

    Ali

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 1:46 PM (GMT 0) on 28 Feb 2024]
Reply
  • Hi 

    Maybe, partially. For example, in Studio 2017 it is possible to search for elements or tags using the Advanced Display Filter, thus:

    Trados Studio Advanced Display Filter window with 'menucascade' typed in the Source text field and the Apply Filter button highlighted.

    Then only the segments with the menucascade element will be displayed, which will narrow down the search field to only those segments containing that element. Then you can search visually - or you could use Ctrl+F to search for a frequently-used letter of the alphabet that might flag up text in the wrong place. This is very much a patchwork workaround, though.

    If the menucascade element is not actually in a segment then you can't search for it (there is extra content visible if you click on the 'All content' display filter but you can't use the software to search in the non-segment content and there is also content that is behind that which is visible via 'All content').

    Another workaround I use with XMLs if I'm able to generate the target XML is to open it in Trados TagEditor because that sometimes more precise at showing exactly where this type of error is happening... Do you have TagEditor (the Trados translation software before Studio 2009 came out).

    I'll wait to see if either of the above suggestions helped before making any further suggestions. There may be an app available on the SDL AppStore that can search more precisely also...

    All the best,

    Ali

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 1:46 PM (GMT 0) on 28 Feb 2024]
Children