pdf plugin can't be integrated in Oxygen
Posted: Wed Nov 29, 2017 9:16 am
Hi Oxyge expert,
I can integrated a pdf plugin to oxygen and run it as a DITA tranformer. All the process are ok for me.
Now, I build a new PDF plugin, which is installed in DIOT 2.4 successfully but can't be integrated into Oxygen.
After I run Run DiTA-OT integrator, its plugin type can't shown in the DITA OT tranformer list in Oxygen.
As I can't attach the code, and the plugin is just a new one with a few codes, I copy them all here.
The plugin structure is like below:
com.t1.pdf2
------------------>integrator.xml
------------------->plugin.xml
------------------->cfg--------->fo------>attrs------>custom.xsl
------------------->cfg--------->fo------->xsl-------->custom.xsl
------------------->cfg--------->common------->artwork <!--artwork is a empty folder-->
------------------->cfg--------->common------->vars <!--vars is a empty folder-->
------------------->cfg--------->catalog.xml
The files are below:
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.t1.pdf2">
<require plugin="org.dita.pdf2" />
<feature extension="dita.conductor.transtype.check" value="t1pdf" />
<feature extension="dita.transtype.print" value="t1pdf" />
<feature extension="dita.conductor.target.relative" file="integrator.xml" />
</plugin>
integrator.xml
<?xml version='1.0' encoding='utf-8'?>
<project name="com.t1.pdf2">
<target name="dita2t1pdf.init">
<property name="customization.dir" location="${dita.plugin.com.t1.pdf.dir}/cfg" />
<property name="pdf2.i18n.skip" value="true" />
</target>
<target name="dita2t1pdf" depends="dita2t1pdf.init, dita2pdf2" />
</project>
custom.xsl, cutom.xsl files in both attrs and xsl folder are the same.
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0">
</xsl:stylesheet>
catalog.xml
<?xml version='1.0' encoding='utf-8'?>
<catalog prefer="system" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" >
<!-- Custom attributes entry -->
<uri name="cfg:fo/attrs/custom.xsl" uri="fo/attrs/custom.xsl"/>
<!-- Custom XSL code entry.-->
<uri name="cfg:fo/xsl/custom.xsl" uri="fo/xsl/custom.xsl"/>
</catalog >
Thanks for help!
Lisa
I can integrated a pdf plugin to oxygen and run it as a DITA tranformer. All the process are ok for me.
Now, I build a new PDF plugin, which is installed in DIOT 2.4 successfully but can't be integrated into Oxygen.
After I run Run DiTA-OT integrator, its plugin type can't shown in the DITA OT tranformer list in Oxygen.
As I can't attach the code, and the plugin is just a new one with a few codes, I copy them all here.
The plugin structure is like below:
com.t1.pdf2
------------------>integrator.xml
------------------->plugin.xml
------------------->cfg--------->fo------>attrs------>custom.xsl
------------------->cfg--------->fo------->xsl-------->custom.xsl
------------------->cfg--------->common------->artwork <!--artwork is a empty folder-->
------------------->cfg--------->common------->vars <!--vars is a empty folder-->
------------------->cfg--------->catalog.xml
The files are below:
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.t1.pdf2">
<require plugin="org.dita.pdf2" />
<feature extension="dita.conductor.transtype.check" value="t1pdf" />
<feature extension="dita.transtype.print" value="t1pdf" />
<feature extension="dita.conductor.target.relative" file="integrator.xml" />
</plugin>
integrator.xml
<?xml version='1.0' encoding='utf-8'?>
<project name="com.t1.pdf2">
<target name="dita2t1pdf.init">
<property name="customization.dir" location="${dita.plugin.com.t1.pdf.dir}/cfg" />
<property name="pdf2.i18n.skip" value="true" />
</target>
<target name="dita2t1pdf" depends="dita2t1pdf.init, dita2pdf2" />
</project>
custom.xsl, cutom.xsl files in both attrs and xsl folder are the same.
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0">
</xsl:stylesheet>
catalog.xml
<?xml version='1.0' encoding='utf-8'?>
<catalog prefer="system" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" >
<!-- Custom attributes entry -->
<uri name="cfg:fo/attrs/custom.xsl" uri="fo/attrs/custom.xsl"/>
<!-- Custom XSL code entry.-->
<uri name="cfg:fo/xsl/custom.xsl" uri="fo/xsl/custom.xsl"/>
</catalog >
Thanks for help!
Lisa