html issue

Hello,

When I want to create an alignment with html documents, I get an error message:


Erreur : Impossible d’ouvrir le fichier d’entrée pour
traduction. Syntaxe non valide trouvée à la ligne : 1, colonne :
1443.


Origine : XHTML 1.1 v 2.0.0.




Do you know
where the error could be coming from and how to resolve it?


Thank you

Error dialog box in Trados Studio showing 'Impossible d'ouvrir le fichier d'entree pour traduction. Syntaxe non valide trouvee a la ligne: 1, colonne: 1443. Origine: XHTML 1.1 v 2.0.0.'



Generated Image Alt-Text
[edited by: Trados AI at 12:04 PM (GMT 0) on 29 Feb 2024]
emoji
Parents Reply
  •  

    Thanks for that... I have logged a case for this because I think there is an inconsistency in behaviour, but at least there's an easy solution!!

    When you open these files in Studio directly they use the HTML filetype, and this is correct.  But when you use the alignment module the XHTML filetype is used and this will cause a problem because these files are both invalid XHTML.  The reason being it's full of opening tags with no closing tags and whilst HTML is forgiving, XHTML is not.

    So, the solution is to simply change the order of the filetype in your default settings under File -> Options like this... so you probably have this:

    Screenshot showing XHTML above HTML in the filetype settings list.

    Just swap them to this:

    Screenshot showing HTML above XHTML in the filetype settings list.

    So now HTML is above XHTML in the list.  Now when you use the alignment module the HTML will be used instead and you shouldn't get an error.... this works for me anyway1

    Screenshot showing the alignment view for the two files.

    The support case for reference is Case Details - 00814310.

    Paul Filkin | RWS Group

    ________________________
    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