Having problems creating XML file type in WorldServer 11.7.3 from Trados Studio 2022

/cfs-file/__key/communityserver-discussions-components-files/247/TestXML-_2D00_-Copy.txt

Hello!

I recently got a new laptop and installed Trados Studio 2022. I needed to create a new XML file type for WorldServer 11.7.3.328. Trados Studio only offers the following file types for creation:

Until now in Trados Studio 2021, we had always used the XML Embedded Content file type, but this is no longer available. So I chose XML 2 and created my file type. However, it could not be imported into WorldServer.

So I created a test file type and the rest of this post deals with that and shows what's happening.

(created as stated with the XML 2 file type)

Exported to .sdlftsettings file (attached to this post).

Tried to import into WorldServer:

So I checked the sdlftsettings file:

Then I take a closer look at the XML 2 file types allowed by WorldServer:

The only one that seems relevant to my situation would be XML 2: Any XML, but I am not able to change its setting or create a copy of it in Studio:

So my question is this:

How am I supposed to create an XML file filter in Trados Studio 2022 and successfully import it into WorldServer?



Converted TXT file to link (it needs to be renamed to .sldftsettings. Also added additional clarity.
[edited by: Michael Schroeder at 6:19 AM (GMT 0) on 14 Mar 2023]
emoji
Parents Reply Children
  • Hi Michael, I have tested the segmentation after the import and - unfortunately - I confirm that the settings are not applied and the segmentation results in 0 words. I have filed a defect with ID CRQ-33343. I hope to hear back from the Engineering Team with a solution or a workaround for versions below 11.8. As you know, the issue is fixed in version 11.8. Maybe is upgrading an option for you? Version 11.8.0 is already available, 11.8.1 will be released around mid May. Anyway, I will keep you posted. Happy Easter!

    emoji
  • Hi Caterina,

    thank you for following up! We had actually just upgraded from 11.3.5 to 11.7.3 so I'm not sure we can convince the company to upgrade again. I am still clarifying the status of our support agreement and look forward to any new information from your side. Happy Easter as well! Slight smile

    emoji
  • Dear Michael, unfortunately, the issue is not fixed for version 11.7.3, but I found an imperfect, but functioning workaround:

    1- In Trados Studio, create your File Type configuration normally using File > Options > File Types > New from XML2.
    2- Export your File Type configuration to a *.sdlftssettings file
    3- Before importing it into WorldServer 11.7.x (which would lead to the error), open the .sdlftssettings file in *Notepad ++, and change these properties as below. Note: the values associated with SettingsGroup Id and FileTypeDefinitionId might vary, depending on what you have entered in Studio.

    Find
    <SettingsGroup Id="Copy of XML v 2.0.0.0_2">
    and replace it with
    <SettingsGroup Id="XML: Any v 1.2.0.0">

    Find
    <Setting Id="FileTypeConfiguration_ComponentBuilderId">XML v 2.0.0.0</Setting>
    and replace it with
    <Setting Id="FileTypeConfiguration_ComponentBuilderId">XML v 1.2.0.0</Setting>

    Find
    <FileTypeDefinitionId>Copy of XML v 2.0.0.0_2</FileTypeDefinitionId>
    and replace it with
    <FileTypeDefinitionId>XML: Any v 1.2.0.0</FileTypeDefinitionId>

    Save your change and import the File Type configuration again. The import will work. However: the filter configuration will not appear under the XML 2: Any XML File type, but under the Custom XML (Legacy Embedded Content) File Type.

    The filter configuration will work, meaning that XML files will be segmented fine.

    I will keep you posted.

    Cheers, Caterina

    emoji
  • Hi  , thank you very much for the follow-up. When I get some free time, I will give it a go and let you know the results.

    emoji
  • Hi   I've just tested it, and you're right: it does segment. However, it didn't show up for me under "Custom XML (Legacy Embedded Content) File Type", but under "XML: Any v 1.2.0.0". In addition, all parser settings were ignored so the segments are partially broken and no document structure information is displayed.

    emoji
  • Hi Michael, sorry, there was a typo in my previous instructions: I entered, <SettingsGroup Id="XML: Any v 1.2.0.0">

    instead of 

    <SettingsGroup Id="XML v 1.2.0.0">

    Let me summarize the instructions:

    1- In Trados Studio, create your File Type configuration normally using File > Options > File Types > New from XML2.
    2- Export your File Type configuration to a *.sdlftssettings file
    3- Before importing it into WorldServer 11.7.x (which would lead to the error), open the .sdlftssettings file in *Notepad ++

    Find
    <SettingsGroup Id="Copy of XML v 2.0.0.0_2">
    and replace it with
    <SettingsGroup Id="XML v 1.2.0.0">

    Find
    <Setting Id="FileTypeConfiguration_ComponentBuilderId">XML v 2.0.0.0</Setting>
    and replace it with
    <Setting Id="FileTypeConfiguration_ComponentBuilderId">XML v 1.2.0.0</Setting>

    Note: <FileTypeDefinitionId> is optional, it does not really need to be changed.

    Save your change and import the File Type configuration again. The import will work. However: the filter configuration will not appear under the XML 2: Any XML File type, but under the Custom XML (Legacy Embedded Content) File Type.

    - To modify the XML2 File Type Setting file to a Custom XML (Embedded Content Processor) file type configuration, follow the same step above but use 

    <SettingsGroup Id="XML v 1.3.0.0">

    <Setting Id="FileTypeConfiguration_ComponentBuilderId">XML v 1.3.0.0</Setting>

    In my tests, the segmentation was fine after the import and exactly as in Studio. However, I have used a simple test source file and a simple configuration without embedded content processor(s) enabled.

    I also would like to let you know that the issue with the 0 words after segmentation does not happen on all 11.7.x environments when applying the previous workaround to the XML 2 File Type. While I can reproduce in one of my test environments, creating an XML 2 File Type and then replacing only

    <Setting Id="FileTypeConfiguration_ComponentBuilderId">XML v 2.0.0.0</Setting>

    with

    <Setting Id="FileTypeConfiguration_ComponentBuilderId">XML: Any v 2.0.0.0</Setting>

    and importing it, in several other 11.7.x test environments, the segmentation works perfectly and matches the one in Studio. I am not sure yet what is different in your environment and in the one where I can reproduce. So far I could not find out. 

    I think that it would be great if you could submit a WorldServer support case so we can work on this together, exchanging files and having a call as this thread is getting too long and possibly for Community, I am afraid.

    Cheers

    emoji
  • Hi Caterina,

    I understand and would like to thank you for the support you have provided thus far. I hope to be able to test the new variant soon (and will post here when I have). Have a great weekend!

    emoji
  • Hi Caterina,

    was able to get to it faster than I thought. It looks like everything is working now: it's segmented correctly, etc. The only thing that doesn't seem to be working is the color coding for the document structure information. Despite what I set in Trados Studio the colors all come back from WorldServer as white. Other than that, everything looks good. Thanks again for all your help!

    emoji