Hi All -
I've been tilting at a few windmills lately trying to understand how to extend my custom DITA OT plugin. I'm sure I'm overlooking something obvious, but nothing I've tried so far works.
Here's what I have:
Here’s what I want:
What I want is to customize a few of the \cfg\fo\attrs files and a few of the \cfg\fo\xsl files in myOtherPDFplugin, with the bulk of the processing managed by the files in the cfg\ folder of myPDFplugin.
However, when I generate a PDF using the myOtherPDFplugin plugin, I don’t see any of the processing or formatting from myPDFplugin, instead I only see processing and formatting from the base DITA OT “pdf2” plugin.
In my build.xml file for myOtherPDFplugin, I have the following property in my <target name="dita2myOtherPDFplugin.init"> target:
Whereas the customization.dir property for my myPDFplugin Is “${dita.plugin.com.mcm.myPDFplugin.dir}/cfg", and I suspect that this location is never evaluated during the PDF generation because the value "customization.dir" appears in both of my plugins’ dita2xxx.init targets, and only the highest priority one applies.
What am I missing?
I should be able to “subclass” my own custom plugin, and not have to copy all of the cfg files from one to the other, but only modify (and include in custom.xml) a subset in the “subclass” plugin from the base plugin. There’s some subtlety I’ve overlooked, clearly. If you’ve successfully implemented a “subclass” plugin (where your pluginB extends your pluginA, which in turn uses the DITA OT pdf2 plugin), let me know how you made it work.
Thanks,
Michael
<plugin id="idvalue">
....
<feature extension="dita.xsl.xslfo" value="customFO.xsl" type="file"/> </plugin>
...
--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/dita-ot-users/5c34acad-78f1-44b8-b630-f2fbdf46cd02n%40googlegroups.com.
<xsl:import href="plugin:org.dita.html5:xsl/dita2html5Impl.xsl"/>
To view this discussion on the web, visit https://groups.google.com/d/msgid/dita-ot-users/54eb666e-cbbd-4632-b217-deac343af9ean%40googlegroups.com.
<!-- MCM: Imported "attr" files from the "myPDFplugin" plugin; base formatting is specified here -->
<xsl:import href="plugin:com.mcm.pdf:cfg/fo/attrs/commons-attr.xsl"/>
<-- ... the other 21 import statements omitted for brevity ... -->
<!-- MCM: Imported "attr" files for the "myOtherPDFplugin" plugin -->
<!-- MCM: Only files with changed templates for the "myOtherPDFplugin" are listed; all base formatting comes from the "myPDFplugin" plugin -->
<xsl:import href="commons-attr.xsl"/>
<-- ... the other modified files omitted for brevity ... -->