Adding custom pre-process param to all transtypes

Patrik
Posts: 240
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Adding custom pre-process param to all transtypes

Post by Patrik » Tue Sep 13, 2016 3:23 pm

I created a custom pre-process step for DITA-OT that has it's own parameter. To make it visible in oXygen when configuring a transformation scenario I added it to my custom transtype in the plugin.xml.
But actually my plugin will affect any transtype. So I'm wondering if there is already any mechanism to add a global parameter so oXygen will list it for any transtype - including those I didn't create on my own.

Thanks and regards,
Patrik

Radu
Posts: 7102
Joined: Fri Jul 09, 2004 5:18 pm

Re: Adding custom pre-process param to all transtypes

Post by Radu » Tue Sep 13, 2016 3:50 pm

Hi Patrik,

In your plugin.xml you should have something like this:

Code: Select all

    <transtype name="base" abstract="true">
<param name="paramName" desc="someValue" type="enum">
<val>true1</val>
<val default="true">false2</val>
</param>
</transtype>
Oxygen gathers all transtypes named "base" and contributes their parameters to all other non-abstract transtypes.

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

Post Reply