Creating custom plugin

Motionless
Posts: 3

Creating custom plugin

Wed Jul 26, 2017 1:56 pm

Hello

I'm creating a custom plugin that will convert DITA to a text file. The current issue i'm having is how do i get the data that my XSLT generates based on the dita and push it to the ant file that will create the text file. This thinking process might be wrong. If so can anyone push me in the right direction?

Thanks in advance!
Radu
Posts: 5872

Re: Creating custom plugin

Wed Jul 26, 2017 2:15 pm

Hi,

So you are creating a DITA OT plugin which outputs some text content from DITA, right?
There is a DITA OT plugin which converts DITA to plain text, maybe you should take a look at it:

https://github.com/jelovirt/dita-ot-plugins/tree/master/com.github.dita-ot-plugins.plaintext

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Motionless
Posts: 3

Re: Creating custom plugin

Wed Jul 26, 2017 3:26 pm

Thanks for the fast reply Radu, after some minor issues i got it up and running. But when i transform now the text file is empty?

Regards,
Motionless
Radu
Posts: 5872

Re: Creating custom plugin

Wed Jul 26, 2017 3:38 pm

Hi,

It probably depends on what your XSLT stylesheet does. I do not have enough details to help you.
If you zip your plugin and send it to us (support@oxygenxml.com) I could try to help further.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Motionless
Posts: 3

Re: Creating custom plugin

Wed Jul 26, 2017 3:43 pm

Radu wrote:Hi,

It probably depends on what your XSLT stylesheet does. I do not have enough details to help you.
If you zip your plugin and send it to us (support@oxygenxml.com) I could try to help further.

Regards,
Radu

I'm using the one provided by troff. Does this have to be my own XSLT?
Radu
Posts: 5872

Re: Creating custom plugin

Thu Jul 27, 2017 9:29 am

Hi,

I tested the plugin I indicated and it only works well with the older DITA OT 1.8 distribution. So it seems not to have been tested or updated for DITA OT 2.x.
I also answered you on the Stack Overflow post:

https://stackoverflow.com/questions/45324770/creating-custom-dita-plugin-for-oxygen-author/45342914#45342914

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest