Page 1 of 1

Creating custom plugin

Posted: Wed Jul 26, 2017 1:56 pm
by Motionless
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!

Re: Creating custom plugin

Posted: Wed Jul 26, 2017 2:15 pm
by Radu
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-plu ... .plaintext

Regards,
Radu

Re: Creating custom plugin

Posted: Wed Jul 26, 2017 3:26 pm
by Motionless
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

Re: Creating custom plugin

Posted: Wed Jul 26, 2017 3:38 pm
by Radu
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

Re: Creating custom plugin

Posted: Wed Jul 26, 2017 3:43 pm
by Motionless
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?

Re: Creating custom plugin

Posted: Thu Jul 27, 2017 9:29 am
by Radu
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/453 ... 4#45342914

Regards,
Radu