Page 1 of 1
Newbie's question about DITAmap
Posted: Mon Feb 18, 2013 5:51 pm
by plumblei
Hello. I'm just making my first steps in oxygen with DITA. I converted a doc file to DITA with oxygen. When I try to open the ditamap file, I get an error saying that a bookmap.dtd file is missing. If I try to open a dita file, it opens in the XML view, and I also get an error about a missing concept.dtd file.
So how do I generate these dtds?
Re: Newbie's question about DITAmap
Posted: Mon Feb 18, 2013 5:55 pm
by Radu
Hi,
How exactly did you convert the DOC file to DITA?
A DITA Bookmap should have the following DOCTYPE declaration at the beginning of the file:
Code: Select all
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd">
<bookmap>....
</bookmap>
A DITA concept should have the DOCTYPE declaration like:
Code: Select all
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept>
....
</concept>
This is how Oxygen creates them when you use the "File->New" dialog wizard.
Probably your resources are missing the PUBLIC identifiers as stated above, identifiers which are used by Oxygen to map using XML catalogs to the DTDs used for validation.
Regards,
Radu
Re: Newbie's question about DITAmap
Posted: Mon Feb 18, 2013 6:07 pm
by plumblei
Hi.
I converted the doc file with the help of the transformation scenario DOCX DITA bundled with oxygen.
I changed the DOCTYPE line in the ditamap file as follows:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd" [
<!-- Begin Document Specific Declarations -->
<!-- End Document Specific Declarations -->
]>
but still get the same error.
Re: Newbie's question about DITAmap
Posted: Mon Feb 18, 2013 6:22 pm
by Radu
Hi,
Validating a simple Bookmap like this:
Code: Select all
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd" [
<!-- Begin Document Specific Declarations -->
<!-- End Document Specific Declarations -->
]>
<bookmap>
<booktitle>
<mainbooktitle>Main book title</mainbooktitle>
</booktitle>
</bookmap>
in Oxygen works for me.
What Oxygen version are you using? And on what platform?
When you installed Oxygen at some stage you were asked whether to install Docbook and DITA support (by default checked). Did you uncheck the DITA support at that stage?
Or did you make any changes to the DTDs which come with the DITA Open Toolkit bundled with Oxygen?
Regards,
Radu
Re: Newbie's question about DITAmap
Posted: Mon Feb 18, 2013 6:57 pm
by plumblei
I created a fresh ditamap and inserted the code you suggested, it gives the same error. I'm using <oXygen/> XML Editor 14.1, build 2012121012 on Windows 7. I don't remember unchecking any options when installing it and changing DTD, I doubt that I did it since I installed oxygen for working with Docbook and DITA. Can I check that somehow?
Re: Newbie's question about DITAmap
Posted: Mon Feb 18, 2013 10:05 pm
by plumblei
I reinstalled oxygen and that did the trick! Thank you, Radu!