XML file using dtd file

Hello, would you please advise how to start translating a xml file using a dtd file? (where the dtd file is to be imported?) Thanks a lot, Jana

emoji
  •  

    When you are creating the new XML file type, select Element rules in step 2:

    Trados Studio Create File Type window showing step 2 Parser Rule Type with Element rules selected.

    Then in step 3 you will be able to add the DTD file:

    Trados Studio Create File Type window showing step 3 XML Settings Import with option to Define settings based on XML, XSD, or DTD rule file.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 12:22 PM (GMT 0) on 29 Feb 2024]
  • Hello Jesus, thanks a lot for your help. I am confused though - in the official tutorial at https://www.trados.com/video/how-to-xml-files/148860/, they add in the step 3 not the dtd file, but the xml file.

    emoji
  • Hello Jana,

    To translate an XML file using a DTD file in Trados Studio, you can follow these steps:

    Step 1: Open Trados Studio and go to "File" -> "Options".

    Step 2: In the Options window, navigate to "File Types".

    Step 3: Find and select the "XML" file type filter.

    Step 4: In the XML file type settings, navigate to the "DTD Settings" tab.

    Step 5: Here, you can import your DTD file by clicking on the "Add" button and browsing to the location of your DTD file.

    Step 6: Once the DTD file is imported, you can use it to define the structure of your XML file for translation.

    Step 7: After setting up the DTD file, you can now open your XML file in Trados Studio for translation.

    Please note that if you encounter any issues with DTD validation, you can uncheck the "Perform schema validation when verifying translation" option in the XML file type settings. This will allow you to proceed with the translation even if there are issues with the DTD file.

    I hope this helps! If you have any other questions, feel free to ask.

    Best regards,

    RWS Community AI

    emoji
  • CANNOT FIND " XML file type settings, navigate to the "DTD Settings" tab."

    emoji
  • Hello,

    I apologize for the confusion earlier. It seems there might have been a misunderstanding. In Trados Studio, the DTD settings are not directly under the XML file type settings. Instead, you need to create a custom XML file type. Here's how you can do it:

    Step 1: Open Trados Studio and go to "File" -> "Options".

    Step 2: In the Options window, navigate to "File Types".

    Step 3: Click "New" (top-right) and select "XML".

    Step 4: Give a name to your file type (you can rename the file type identifier as well - this has to be unique).

    Step 5: Click "Next" and select "XPath rules".

    Step 6: Select the second option (Define settings based on XML...) and click "Browse".

    Step 7: Here, you can browse for your DTD file to import the Parser Rules.

    Step 8: Click "Next" until you reach the "Parser Rules" section. Here, you will notice that all the elements from your DTD file are imported as Parser Rules.

    Step 9: Click "Finish" and your new custom file type will be created.

    Now, you can use this custom XML file type to open your XML file in Trados Studio for translation.

    I hope this clears up the confusion. If you have any other questions, please don't hesitate to ask.

    Best regards,

    RWS Community AI

    emoji
  • HOW CAN I can use this custom XML file type to open your XML file in Trados Studio for translation?

    emoji
  • Hello Jana,

    Once you've created your custom XML file type, you can use it to open your XML file in Trados Studio for translation by following these steps:

    Step 1: Open Trados Studio.

    Step 2: Click on "File" -> "Open Document".

    Step 3: Browse to the location of your XML file and select it.

    Step 4: In the "Open Document" dialog box, you will see a "File type" dropdown. Click on it.

    Step 5: From the dropdown list, select the custom XML file type that you created earlier.

    Step 6: Click "Open". Your XML file will now open in Trados Studio, and it will be parsed according to the rules defined in your custom XML file type.

    Remember, the custom XML file type you created can be exported and imported into any of our products, like Trados Enterprise, World Server, etc. This makes it easy to share your custom settings with others or use them on different machines.

    I hope this helps! If you have any other questions, please don't hesitate to ask.

    Best regards,

    RWS Community AI

    emoji
  •   

    I loved seeing you use the AI as it was intended by unchecking the verified answer and refining your question!  Hopefully it helped you?

    I just thought I clarify this point:

    I am confused though - in the official tutorial at https://www.trados.com/video/how-to-xml-files/148860/, they add in the step 3 not the dtd file, but the xml file.

    I think many people don't use DTD files.  This would be a more sophisticated approach that some users probably don't come across.  But in step 3 you have the choice of using the XML, XSD or a sdlftsettings file to help create your parser rules.  In the video ( https://www.trados.com/video/how-to-xml-files/148860/ ) only a very simple file is used and so the presenter just used the XML file itself to help get a start creating the rules.  You could also use the default settings and manually create your rules.

    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
  •  

    Just to clarify in Trados Studio 2021 we had support for INI, ANL, XML, XSD, ITS or DTD files using the old XML (Embedded Content filetype)

    In Trados Studio 2022 we only support the newer XML2 filetype and this only supports XML, sdftsettings or XSD rule files.

    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
1 2