Newbie's question about DITAmap

Post here questions and problems related to editing and publishing DITA content.
plumblei
Posts: 26
Joined: Mon Feb 18, 2013 5:44 pm

Newbie's question about DITAmap

Post 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?
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Newbie's question about DITAmap

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
plumblei
Posts: 26
Joined: Mon Feb 18, 2013 5:44 pm

Re: Newbie's question about DITAmap

Post 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.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Newbie's question about DITAmap

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
plumblei
Posts: 26
Joined: Mon Feb 18, 2013 5:44 pm

Re: Newbie's question about DITAmap

Post 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?
plumblei
Posts: 26
Joined: Mon Feb 18, 2013 5:44 pm

Re: Newbie's question about DITAmap

Post by plumblei »

I reinstalled oxygen and that did the trick! Thank you, Radu!
Post Reply