DITAfor publishers (d4p) & Oxygen

Post here questions and problems related to editing and publishing DITA content.
fgiovannini
Posts: 3
Joined: Wed May 16, 2012 3:38 pm

DITAfor publishers (d4p) & Oxygen

Post by fgiovannini »

Hi, I would like to deploy the D4p Dita specialization (http://sourceforge.net/projects/dita4publishers/) in order to use it with Oxygen. D4p contains a series of plugin for the DITA OT, and the instruction to deploy them inside the toolkit. But I would like also to be able to create and edit documents in Oxygen using this specialization. Could someone give me indications on how to do that?
Thanks.
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITAfor publishers (d4p) & Oxygen

Post by Radu »

Hi,

Once you copy all the DITA 4 Publishers plugins to the plugins folder from the DITA OT bundled with Oxygen:

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins

and run the DITA OT integrator the specialization DTDs will be installed in the DITA OT's main catalog and Oxygen should then be aware of them.

Then you will just need new file templates to get things going.
In the DITA for publishers distribution there should be a folder called "templates".

You should copy the contents of that folder to:

OXYGEN_INSTALL_DIR\frameworks\dita\templates

Then you can use the "New" wizard in Oxygen to search for the new templates, the prefix for all the added templates is "D4P".

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
fgiovannini
Posts: 3
Joined: Wed May 16, 2012 3:38 pm

Re: DITAfor publishers (d4p) & Oxygen

Post by fgiovannini »

Thank you Radu, this is what I've tried to do:

1. copy all the plugins under the plugin dir (OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins)

2. run ant -f integrator.xml (I've copied the tools/ant dir from the toolkit under the Oxygen's DITA OT folder and started the Command line with startcmd.bat)

3. copy the template folders (namely maps, topics, and word2dita) under template oxygen dir

but I'm not able to see any d4p template when I create a new doc.

In the catalog-dita.xml I can see a line like: "<rewriteURI uriStartString='plugin:net.sourceforge.dita4publishers.ruby.html:' ...>, and the file has been modified by the integration. What I am missing?
Many thanks,
Franco
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITAfor publishers (d4p) & Oxygen

Post by Radu »

Hi Franco,

You are right, D4P had named the templates folders topics, maps while the existing folders in the Oxygen DITA templates directory are named topic and map.

Just copy the contents of the folder topics to the topic folder and the same for the folder maps to the map directory.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
fgiovannini
Posts: 3
Joined: Wed May 16, 2012 3:38 pm

Re: DITAfor publishers (d4p) & Oxygen

Post by fgiovannini »

Great! It works. Thank you Radu.

Franco
yamahito
Posts: 7
Joined: Fri Nov 11, 2011 3:39 pm

Re: DITAfor publishers (d4p) & Oxygen

Post by yamahito »

IS this still the recommended way of implementing this (as of version 17)?

I ask since it seems incompatible with the idea of creating an extension to the DITA framework and distributing it as an Add On; is there no way of doing this other than replicating (and therefore having to maintain) the whole DITA-OT?
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITAfor publishers (d4p) & Oxygen

Post by Radu »

Hi,

You are right, the answer I gave back then was not that elegant.
Here's another way to do that based on framework extensions:

http://www.oxygenxml.com/forum/topic11976.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
yamahito
Posts: 7
Joined: Fri Nov 11, 2011 3:39 pm

Re: DITAfor publishers (d4p) & Oxygen

Post by yamahito »

Thanks, Radu!

It doesn't quite answer my question, but I'll follow up with a comment on the blog post ;)

Tom
Post Reply