Hello,
I have received structured FM file from a client and I would like to convert this file to DITA.
I have tried to achieve this several times by restarting from the beginning and by reading all the doc I could find, but I cannot manage to get my XML file.
Below are the steps I followed:
- Open the file (2 Safety.fm).
- Create a new structured application (named "TEST") with no DTD, no read/write rules, etc, only template.
- Define structured application (TEST) for the document 2 Safety.fm.
- Export elements catalog as EDD.
- Save this EDD as a DTD.
- Corrected errors after doing this like missing parentheses or asterisks. DTD is correct according to Validome (DTD and Schema Validator - Check for XML grammar).
- Save 2 Safety.fm as XML.
- Added line <!DOCTYPE chapter SYSTEM ".... DTD\test2.dtd"> in the XML file to declare the external DTD obtained as step 5.
- Tried importing XML file into FM but there's many elements appearing in red in the structure view, there's no formatting, and errors appear in the console (below are 2 of them translated from French, sorry about that) :
Error at line 34, character 59, Message : Empty invalid content for content model '(entry)+'.
Error at line 75, character 30, Message : Attribute '{http://www.w3.org/2000/xmlns/}fm' has not been declared for element 'module'.
Now I have a few questions :
- I can't find text http://www.w3.org/2000/xmlns/ in my XML file so I don't know from where the error above comes from ?
- Is it now that I have to write the read/write rules to remove the errors above ? Is the StructureTools / New read write rules method the right method to create these rules ?
- About formatting, will declare a template in the TEST application will be sufficient to get everything looking as in the FM file ?
Thank you very much in advance for your explanations and for enlightning me on this matter.
Regards.