Merge DITA-OT similar Plugins
Posted: Mon Apr 05, 2021 1:21 pm
Merge DITA-OT similar Plugins
Hi,
DITA-OT 2.4.6
Oxygen Editor 22.0
We have developed 5 plugins to convert differnet types of xmls into DITA. The structure of xml content is differnet so we developed different plugins.
Ex: To convert Product1.xmls into DITA(dita topics,ditamaps) , we created plugin1. Similar plugin2 for Product2.xmls and plugin3 for Product3.xmls.
Now we are looking to merge the conversion process into one plugin
There is a plugin.xml and xslts for each plugin .
Below are the dita command used,
/usr/bin/env \
'JAVA_HOME=/java/current' \
'/h/src/dita-ot-2.4.6/bin/dita' \
'--format=Product1dita' \
'--input=/dev/null' \
'-Dargs.input.dir=/h/nonfa/svn/prod1' \
'--output=/h/nonfa/gen/prod1' |
/usr/bin/env \
'JAVA_HOME=/java/current' \
'/h/src/dita-ot-2.4.6/bin/dita' \
'--format=Product2dita' \
'--input=/dev/null' \
'-Dargs.input.dir=/h/nonfa/svn/prod2' \
'--output=/h/nonfa/gen/prod2' |
We are trying to merge these plugins into one to avoid maintenance.
Please suggest the best option to merge similar plugins into one plugin.
Thanks,
Samba
Hi,
DITA-OT 2.4.6
Oxygen Editor 22.0
We have developed 5 plugins to convert differnet types of xmls into DITA. The structure of xml content is differnet so we developed different plugins.
Ex: To convert Product1.xmls into DITA(dita topics,ditamaps) , we created plugin1. Similar plugin2 for Product2.xmls and plugin3 for Product3.xmls.
Now we are looking to merge the conversion process into one plugin
There is a plugin.xml and xslts for each plugin .
Below are the dita command used,
/usr/bin/env \
'JAVA_HOME=/java/current' \
'/h/src/dita-ot-2.4.6/bin/dita' \
'--format=Product1dita' \
'--input=/dev/null' \
'-Dargs.input.dir=/h/nonfa/svn/prod1' \
'--output=/h/nonfa/gen/prod1' |
/usr/bin/env \
'JAVA_HOME=/java/current' \
'/h/src/dita-ot-2.4.6/bin/dita' \
'--format=Product2dita' \
'--input=/dev/null' \
'-Dargs.input.dir=/h/nonfa/svn/prod2' \
'--output=/h/nonfa/gen/prod2' |
We are trying to merge these plugins into one to avoid maintenance.
Please suggest the best option to merge similar plugins into one plugin.
Thanks,
Samba