Page 1 of 1

DITAfor publishers (d4p) & Oxygen

Posted: Wed May 16, 2012 4:09 pm
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.

Re: DITAfor publishers (d4p) & Oxygen

Posted: Wed May 16, 2012 4:29 pm
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

Re: DITAfor publishers (d4p) & Oxygen

Posted: Wed May 16, 2012 5:07 pm
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

Re: DITAfor publishers (d4p) & Oxygen

Posted: Wed May 16, 2012 5:33 pm
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

Re: DITAfor publishers (d4p) & Oxygen

Posted: Wed May 16, 2012 5:45 pm
by fgiovannini
Great! It works. Thank you Radu.

Franco

Re: DITAfor publishers (d4p) & Oxygen

Posted: Thu Aug 13, 2015 10:39 pm
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?

Re: DITAfor publishers (d4p) & Oxygen

Posted: Fri Aug 14, 2015 8:29 am
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

Re: DITAfor publishers (d4p) & Oxygen

Posted: Fri Aug 14, 2015 6:46 pm
by yamahito
Thanks, Radu!

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

Tom