Creating custom plugin

Post here questions and problems related to editing and publishing DITA content.
Motionless
Posts: 3
Joined: Wed Jul 26, 2017 1:52 pm

Creating custom plugin

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

Re: Creating custom plugin

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Motionless
Posts: 3
Joined: Wed Jul 26, 2017 1:52 pm

Re: Creating custom plugin

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

Re: Creating custom plugin

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Motionless
Posts: 3
Joined: Wed Jul 26, 2017 1:52 pm

Re: Creating custom plugin

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

Re: Creating custom plugin

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply