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

    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
  • Hi  , I came across the same situation and I am trying to follow  indications but Trados Studio crashes immediately after I add the DTD file. It seems DTD definition file is supported, since it is included in the supported file types, as you can see from the screenshots below:



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

    File explorer window titled 'Import settings' displaying two DTD files named 'ST4.dtd' and 'Tms.dtd' with the option to select DTD Files(*.dtd) from a dropdown menu.

    I tried to select ST4.dtd and it seems to take it, but then it crashes.

    Where am I wrong?

    Thanks a lot,

    Alessia

    emoji


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

    I don't know why it's crashing, but frankly the DTD is very unlikely to help you anyway and this is why it's not there in the XPath rules because it probably doesn't contain any information to help with your parser rules anyway.  DTD has been mostly superseded by XSD because of its limitations.

    I'd recommend you find another way to create your XML filetype.  DTD won't get you parser rules, doesn't support namespaces, and has various other limitations.  So anything you got from it you could probably add manually anyway.

    If you have the sdlftsettings from your old version then use those instead to create a new 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
  • Hi Paul, thanks for your reply. We were able to use an old SDLftsettings file indeed.

    emoji