xlf-documents cannot be converted to sdlxlf

Hey there,

I have a range of xlf-documents for translation. Unfortunately, many of those documents cannot be translated in Trados Studio 2014. The problem is that they cannot be converted to sdlxlf. The exception says that the index is out of range. Though, these documents can be converted if I use Trados Studio 2011. 

The problem seems to be limited to certain trans-units. If I delete some trans-units, the document can be converted to sdlxlf and hence, translated.

I have prepared a document including 5 trans-units, as well as a document containing the trans-units that work (tu1, tu3 and tu5) and a document containing the trans-unit that cannot be converted to sdlxlf (tu2 and tu4). (Unfortunately, I was not able to upload xlf-files, so I uploaded them as xml-files)

For me, it seems like there might be a problem with the different tags ...

Hope, anyone can help me with this issue, since I have quite many documents with the same problem.

Many thanks in advance

<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:okp="okapi-framework:xliff-extensions" xmlns:its="http://www.w3.org/2005/11/its" xmlns:itsxlf="http://www.w3.org/ns/its-xliff/" its:version="2.0">
<file original="[Content_Types].xml" source-language="de-de" target-language="en-gb" datatype="x-undefined" okp:inputEncoding="UTF-8">
<body>
</body>
</file>
<file original="word/styles.xml" source-language="de-de" target-language="en-gb" datatype="x-undefined" okp:inputEncoding="UTF-8">
<body>
</body>
</file>
<file original="word/document.xml" source-language="de-de" target-language="en-gb" datatype="x-undefined" okp:inputEncoding="UTF-8">
<body>
<trans-unit id="tu1" xml:space="preserve">
<source xml:lang="de-de"><x id="1" ctype="x-x" equiv-text=""/><g id="2" ctype="x-g" equiv-text="">ABC</g></source>
<seg-source><mrk mid="0" mtype="seg"><x id="1" ctype="x-x" equiv-text=""/><g id="2" ctype="x-g" equiv-text="">ABC</g></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><x id="1" ctype="x-x" equiv-text=""/><g id="2" ctype="x-g" equiv-text="">ABC</g></mrk></target>
</trans-unit>
<trans-unit id="tu2" xml:space="preserve">
<source xml:lang="de-de"><g id="1" ctype="x-g" equiv-text="">This </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">text</g><x id="4" ctype="x-x" equiv-text=""/><bx id="5" ctype="x-g" equiv-text=""/> is to illustrate the problem. This segment cannot be converted to sdlxlf.<ex id="5" equiv-text=""/></source>
<seg-source><mrk mid="0" mtype="seg"><g id="1" ctype="x-g" equiv-text="">This </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">text</g><x id="4" ctype="x-x" equiv-text=""/><bx id="5" ctype="x-g" equiv-text=""/> is to illustrate the problem.</mrk> <mrk mid="1" mtype="seg">This segment cannot be converted to sdlxlf.<ex id="5" equiv-text=""/></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><g id="1" ctype="x-g" equiv-text="">This </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">text</g><x id="4" ctype="x-x" equiv-text=""/><bx id="5" ctype="x-g" equiv-text=""/> is to illustrate the problem.</mrk> <mrk mid="1" mtype="seg">This segment cannot be converted to sdlxlf.<ex id="5" equiv-text=""/></mrk></target>
</trans-unit>
<trans-unit id="tu3" xml:space="preserve">
<source xml:lang="de-de"><g id="1" ctype="x-g" equiv-text="">On the other hand, </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">this Segment</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> does not trigger any problem.</g></source>
<seg-source><mrk mid="0" mtype="seg"><g id="1" ctype="x-g" equiv-text="">On the other hand, </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">this Segment</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> does not trigger any problem.</g></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><g id="1" ctype="x-g" equiv-text="">On the other hand, </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">this Segment</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> does not trigger any problem.</g></mrk></target>
</trans-unit>
<trans-unit id="tu4" xml:space="preserve">
<source xml:lang="de-de"><bx id="1" ctype="x-g" equiv-text=""/>This is the next trans-unit. This trans-unit <ex id="1" equiv-text=""/><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">cannot</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> be converted </g><x id="6" ctype="x-x" equiv-text=""/><g id="7" ctype="x-g" equiv-text="">into sdlxlf</g><x id="8" ctype="x-x" equiv-text=""/><bx id="9" ctype="x-g" equiv-text=""/> either. There is a problem, <ex id="9" equiv-text=""/><x id="10" ctype="x-x" equiv-text=""/><g id="11" ctype="x-g" equiv-text="">though this problem</g><x id="12" ctype="x-x" equiv-text=""/><g id="13" ctype="x-g" equiv-text=""> does not exist using Trados Studio 2011.</g></source>
<seg-source><mrk mid="0" mtype="seg"><bx id="1" ctype="x-g" equiv-text=""/>This is the next trans-unit.</mrk> <mrk mid="1" mtype="seg">This trans-unit <ex id="1" equiv-text=""/><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">cannot</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> be converted </g><x id="6" ctype="x-x" equiv-text=""/><g id="7" ctype="x-g" equiv-text="">into sdlxlf</g><x id="8" ctype="x-x" equiv-text=""/><bx id="9" ctype="x-g" equiv-text=""/> either.</mrk> <mrk mid="2" mtype="seg">There is a problem, <ex id="9" equiv-text=""/><x id="10" ctype="x-x" equiv-text=""/><g id="11" ctype="x-g" equiv-text="">though this problem</g><x id="12" ctype="x-x" equiv-text=""/><g id="13" ctype="x-g" equiv-text=""> does not exist using Trados Studio 2011.</g></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><bx id="1" ctype="x-g" equiv-text=""/>This is the next trans-unit.</mrk> <mrk mid="1" mtype="seg">This trans-unit <ex id="1" equiv-text=""/><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">cannot</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> be converted </g><x id="6" ctype="x-x" equiv-text=""/><g id="7" ctype="x-g" equiv-text="">into sdlxlf</g><x id="8" ctype="x-x" equiv-text=""/><bx id="9" ctype="x-g" equiv-text=""/> either.</mrk> <mrk mid="2" mtype="seg">There is a problem, <ex id="9" equiv-text=""/><x id="10" ctype="x-x" equiv-text=""/><g id="11" ctype="x-g" equiv-text="">though this problem</g><x id="12" ctype="x-x" equiv-text=""/><g id="13" ctype="x-g" equiv-text=""> does not exist using Trados Studio 2011.</g></mrk></target>
</trans-unit>
<trans-unit id="tu5" xml:space="preserve">
<source xml:lang="de-de"><bx id="1" ctype="x-g" equiv-text=""/>This trans-unit can be converted as well. No problem here.<ex id="1" equiv-text=""/></source>
<seg-source><mrk mid="0" mtype="seg"><bx id="1" ctype="x-g" equiv-text=""/>This trans-unit can be converted as well.</mrk> <mrk mid="1" mtype="seg">No problem here.<ex id="1" equiv-text=""/></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><bx id="1" ctype="x-g" equiv-text=""/>This trans-unit can be converted as well.</mrk> <mrk mid="1" mtype="seg">No problem here.<ex id="1" equiv-text=""/></mrk></target>
</trans-unit>
</body>
</file>
</xliff>

<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:okp="okapi-framework:xliff-extensions" xmlns:its="http://www.w3.org/2005/11/its" xmlns:itsxlf="http://www.w3.org/ns/its-xliff/" its:version="2.0">
<file original="[Content_Types].xml" source-language="de-de" target-language="en-gb" datatype="x-undefined" okp:inputEncoding="UTF-8">
<body>
</body>
</file>
<file original="word/styles.xml" source-language="de-de" target-language="en-gb" datatype="x-undefined" okp:inputEncoding="UTF-8">
<body>
</body>
</file>
<file original="word/document.xml" source-language="de-de" target-language="en-gb" datatype="x-undefined" okp:inputEncoding="UTF-8">
<body>
<trans-unit id="tu1" xml:space="preserve">
<source xml:lang="de-de"><x id="1" ctype="x-x" equiv-text=""/><g id="2" ctype="x-g" equiv-text="">ABC</g></source>
<seg-source><mrk mid="0" mtype="seg"><x id="1" ctype="x-x" equiv-text=""/><g id="2" ctype="x-g" equiv-text="">ABC</g></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><x id="1" ctype="x-x" equiv-text=""/><g id="2" ctype="x-g" equiv-text="">ABC</g></mrk></target>
</trans-unit>
<trans-unit id="tu3" xml:space="preserve">
<source xml:lang="de-de"><g id="1" ctype="x-g" equiv-text="">On the other hand, </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">this Segment</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> does not trigger any problem.</g></source>
<seg-source><mrk mid="0" mtype="seg"><g id="1" ctype="x-g" equiv-text="">On the other hand, </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">this Segment</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> does not trigger any problem.</g></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><g id="1" ctype="x-g" equiv-text="">On the other hand, </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">this Segment</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> does not trigger any problem.</g></mrk></target>
</trans-unit>
<trans-unit id="tu5" xml:space="preserve">
<source xml:lang="de-de"><bx id="1" ctype="x-g" equiv-text=""/>This trans-unit can be converted as well. No problem here.<ex id="1" equiv-text=""/></source>
<seg-source><mrk mid="0" mtype="seg"><bx id="1" ctype="x-g" equiv-text=""/>This trans-unit can be converted as well.</mrk> <mrk mid="1" mtype="seg">No problem here.<ex id="1" equiv-text=""/></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><bx id="1" ctype="x-g" equiv-text=""/>This trans-unit can be converted as well.</mrk> <mrk mid="1" mtype="seg">No problem here.<ex id="1" equiv-text=""/></mrk></target>
</trans-unit>
</body>
</file>
</xliff>

<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:okp="okapi-framework:xliff-extensions" xmlns:its="http://www.w3.org/2005/11/its" xmlns:itsxlf="http://www.w3.org/ns/its-xliff/" its:version="2.0">
<file original="[Content_Types].xml" source-language="de-de" target-language="en-gb" datatype="x-undefined" okp:inputEncoding="UTF-8">
<body>
</body>
</file>
<file original="word/styles.xml" source-language="de-de" target-language="en-gb" datatype="x-undefined" okp:inputEncoding="UTF-8">
<body>
</body>
</file>
<file original="word/document.xml" source-language="de-de" target-language="en-gb" datatype="x-undefined" okp:inputEncoding="UTF-8">
<body>
<trans-unit id="tu2" xml:space="preserve">
<source xml:lang="de-de"><g id="1" ctype="x-g" equiv-text="">This </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">text</g><x id="4" ctype="x-x" equiv-text=""/><bx id="5" ctype="x-g" equiv-text=""/> is to illustrate the problem. This segment cannot be converted to sdlxlf.<ex id="5" equiv-text=""/></source>
<seg-source><mrk mid="0" mtype="seg"><g id="1" ctype="x-g" equiv-text="">This </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">text</g><x id="4" ctype="x-x" equiv-text=""/><bx id="5" ctype="x-g" equiv-text=""/> is to illustrate the problem.</mrk> <mrk mid="1" mtype="seg">This segment cannot be converted to sdlxlf.<ex id="5" equiv-text=""/></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><g id="1" ctype="x-g" equiv-text="">This </g><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">text</g><x id="4" ctype="x-x" equiv-text=""/><bx id="5" ctype="x-g" equiv-text=""/> is to illustrate the problem.</mrk> <mrk mid="1" mtype="seg">This segment cannot be converted to sdlxlf.<ex id="5" equiv-text=""/></mrk></target>
</trans-unit>
<trans-unit id="tu4" xml:space="preserve">
<source xml:lang="de-de"><bx id="1" ctype="x-g" equiv-text=""/>This is the next trans-unit. This trans-unit <ex id="1" equiv-text=""/><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">cannot</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> be converted </g><x id="6" ctype="x-x" equiv-text=""/><g id="7" ctype="x-g" equiv-text="">into sdlxlf</g><x id="8" ctype="x-x" equiv-text=""/><bx id="9" ctype="x-g" equiv-text=""/> either. There is a problem, <ex id="9" equiv-text=""/><x id="10" ctype="x-x" equiv-text=""/><g id="11" ctype="x-g" equiv-text="">though this problem</g><x id="12" ctype="x-x" equiv-text=""/><g id="13" ctype="x-g" equiv-text=""> does not exist using Trados Studio 2011.</g></source>
<seg-source><mrk mid="0" mtype="seg"><bx id="1" ctype="x-g" equiv-text=""/>This is the next trans-unit.</mrk> <mrk mid="1" mtype="seg">This trans-unit <ex id="1" equiv-text=""/><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">cannot</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> be converted </g><x id="6" ctype="x-x" equiv-text=""/><g id="7" ctype="x-g" equiv-text="">into sdlxlf</g><x id="8" ctype="x-x" equiv-text=""/><bx id="9" ctype="x-g" equiv-text=""/> either.</mrk> <mrk mid="2" mtype="seg">There is a problem, <ex id="9" equiv-text=""/><x id="10" ctype="x-x" equiv-text=""/><g id="11" ctype="x-g" equiv-text="">though this problem</g><x id="12" ctype="x-x" equiv-text=""/><g id="13" ctype="x-g" equiv-text=""> does not exist using Trados Studio 2011.</g></mrk></seg-source>
<target xml:lang="en-gb"><mrk mid="0" mtype="seg"><bx id="1" ctype="x-g" equiv-text=""/>This is the next trans-unit.</mrk> <mrk mid="1" mtype="seg">This trans-unit <ex id="1" equiv-text=""/><x id="2" ctype="x-x" equiv-text=""/><g id="3" ctype="x-g" equiv-text="">cannot</g><x id="4" ctype="x-x" equiv-text=""/><g id="5" ctype="x-g" equiv-text=""> be converted </g><x id="6" ctype="x-x" equiv-text=""/><g id="7" ctype="x-g" equiv-text="">into sdlxlf</g><x id="8" ctype="x-x" equiv-text=""/><bx id="9" ctype="x-g" equiv-text=""/> either.</mrk> <mrk mid="2" mtype="seg">There is a problem, <ex id="9" equiv-text=""/><x id="10" ctype="x-x" equiv-text=""/><g id="11" ctype="x-g" equiv-text="">though this problem</g><x id="12" ctype="x-x" equiv-text=""/><g id="13" ctype="x-g" equiv-text=""> does not exist using Trados Studio 2011.</g></mrk></target>
</trans-unit>
</body>
</file>
</xliff>

Parents Reply
  • Hi again!
    Sorry that I ask the same questions again, but I have tried nearly everything to convert the files to sdlxlf with Trados Studio 2014 but it doesn't work out, though the settings are the same as yours.

    What I am wondering is that the tags in your Screenshot look different to those I can see in Trados Studio 2014.
    In the screenshot, they show the value of the ctypes, like "x-x" or "x-g".
    In Trados Studio 2014 I can only choose the views:
    - no tag-content,
    - partial tag-content (like "g" or "bx")
    - full tag-content (like <g id="1" ctype="x-g"...>
    - the tag-ID (like "1")

    So you said you are sure you opened the files in Trados Studio 2014 (not 2011)? Sorry, I don't want to doubt about what you said, it's just that I kinda get desperate with those files that I cannot open in TS14 ...

    Thank you for your help!
Children