How to open these XLIFF files?

Dear Team,

I tried using the default XLIFF filter, but I keep getting various errors, the latest are "value cannot be null. parameter name culture" and "There is an error in XML document (1, 2)"

Any idea how I could make this work? Attached two versions of the same file, XLIFF 1.2 and 2.0.

Thank you in advance for your help!

Best regards,

Giannis

4403.Lina-video-subtitles-4190_2.0.zip

emoji
Parents
  •  

    I can open the 1.2 (although it does complain a bit) but not the 2.0.  So I ran it through an XLIFF Validation tool and receive the following:

    1.2
    Invalid attribute in <group>: course-page-layout.

    This indicates that the XLIFF 1.2 file you are trying to work with contains an invalid attribute "course-page-layout" within a <group> element, which is not allowed according to the XLIFF 1.2 specification.  You can check that here: http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#group

    I removed that attribute and also switched off the validation in the filetype settings and it opens without a complaint (apart from the language code which isn't really a problem):

    Screenshot showing the XLIFF 1.2 successfully opened in the Studio editor.

    2.0
    cvc-complex-type.3.2.2: Attribute 'datatype' is not allowed to appear in element 'file'.
    cvc-complex-type.3.2.2: Attribute 'date' is not allowed to appear in element 'file'.
    cvc-complex-type.4: Attribute 'id' must appear on element 'file'.

    This indicates that the XLIFF 2.0 file you are trying to work with contains attributes "datatype" and"date" within an element "file" that are not allowed according to the XLIFF schema rules. It is also missing the mandatory attribute "id".  You can check this here: http://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html#file

    I corrected these and then the message get too complex for me to type out!:

    Screenshot showing a c plex error message generated from validating the XLIFF file in a separate application.

    I removed the content of the notes elements but the messages continue to get more and more complex.  I think you have two options really:

    1. go back to your client and explain what problem you are having as they are producing invalid XLIFF 2.0, or
    2. use the Bilingual XML filetype and then you will be able to handle this with ease as it doesn't care quite so much about the XLIFF specification:
      Screenshot showing the XLIFF 2.0 file being opened in the editor view with the Mulitlingual XML filetype.

    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
Reply
  •  

    I can open the 1.2 (although it does complain a bit) but not the 2.0.  So I ran it through an XLIFF Validation tool and receive the following:

    1.2
    Invalid attribute in <group>: course-page-layout.

    This indicates that the XLIFF 1.2 file you are trying to work with contains an invalid attribute "course-page-layout" within a <group> element, which is not allowed according to the XLIFF 1.2 specification.  You can check that here: http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#group

    I removed that attribute and also switched off the validation in the filetype settings and it opens without a complaint (apart from the language code which isn't really a problem):

    Screenshot showing the XLIFF 1.2 successfully opened in the Studio editor.

    2.0
    cvc-complex-type.3.2.2: Attribute 'datatype' is not allowed to appear in element 'file'.
    cvc-complex-type.3.2.2: Attribute 'date' is not allowed to appear in element 'file'.
    cvc-complex-type.4: Attribute 'id' must appear on element 'file'.

    This indicates that the XLIFF 2.0 file you are trying to work with contains attributes "datatype" and"date" within an element "file" that are not allowed according to the XLIFF schema rules. It is also missing the mandatory attribute "id".  You can check this here: http://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html#file

    I corrected these and then the message get too complex for me to type out!:

    Screenshot showing a c plex error message generated from validating the XLIFF file in a separate application.

    I removed the content of the notes elements but the messages continue to get more and more complex.  I think you have two options really:

    1. go back to your client and explain what problem you are having as they are producing invalid XLIFF 2.0, or
    2. use the Bilingual XML filetype and then you will be able to handle this with ease as it doesn't care quite so much about the XLIFF specification:
      Screenshot showing the XLIFF 2.0 file being opened in the editor view with the Mulitlingual XML filetype.

    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