custom pdf2 plugin on OT3.5


Nicholas Mucks
 

Hi,
We're upgrading from OT 2.3.3 and are starting to work on OT 3.5.  Our plugin runs in OT 3.0.4 but not in OT 3.4 or OT 3.5... Is there something we need to do in the newer versions of OT?

We use a use the args.xsl.pdf property to call a custom topic2fo_shell XSL file:
<property name="args.xsl.pdf"
      location="${dita.plugin.com.custom.pdf2.dir}/cfg/fo/xsl/custom-pdf_topic2fo_shell.xsl"/>

That file has a bunch of overrides that look like this:


<!--basic settings--> 
<xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/basic-settings.xsl"/> 
<xsl:import href="plugin:com.custom.pdf2:cfg/fo/attrs/custom-pdf_basic-settings.xsl"/>



The errors start at transform.topic2fo.main in the logs:


transform.topic2fo.main:
 [pipeline] Static error at xsl:attribute-set on line 51 column 86 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section__content
 [pipeline] Static error at xsl:attribute-set on line 40 column 65 of sw-domain-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}pre
 [pipeline] Static error at xsl:attribute-set on line 41 column 66 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}body
 [pipeline] Static error at xsl:attribute-set on line 56 column 65 of reference-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section
 [pipeline] Static error at xsl:attribute-set on line 40 column 66 of pr-domain-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}pre
 [pipeline] Static error at xsl:attribute-set on line 78 column 68 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section
 [pipeline] Static error at xsl:attribute-set on line 59 column 83 of reference-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section__content
 [pipeline] Static error at xsl:attribute-set on line 53 column 63 of reference-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}body
 [pipeline] Static error at xsl:attribute-set on line 68 column 67 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section
 [pipeline] Static error at xsl:attribute-set on line 44 column 67 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section
 [pipeline] Static error at xsl:attribute-set on line 75 column 91 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}example__content
 [pipeline] Static error at xsl:attribute-set on line 49 column 68 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section
 [pipeline] Static error at xsl:attribute-set on line 46 column 85 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section__content
 [pipeline] Static error at xsl:attribute-set on line 80 column 86 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section__content
 [pipeline] Static error at xsl:attribute-set on line 70 column 85 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}section__content
 [pipeline] Static error at xsl:attribute-set on line 73 column 73 of task-elements-attr.xsl:
 [pipeline]   XTSE0710: Unknown attribute set Q{}example

BUILD FAILED
/Users/xxx/dita-ot/3.5/plugins/org.dita.base/build.xml:29: The following error occurred while executing this line:
/Users/ xxx/dita-ot/3.5/plugins/org.dita.pdf2/build.xml:148: The following error occurred while executing this line:
/Users/ xxx/dita-ot/3.5/plugins/org.dita.pdf2/build.xml:278: java.lang.RuntimeException: Failed to compile stylesheet '/Users/ xxx/dita-ot/3.5/plugins/com.custom.pdf2/cfg/fo/xsl/custom-pdf_topic2fo_shell.xsl': Errors were reported during stylesheet compilation
at org.dita.dost.module.XsltModule.execute(XsltModule.java:107)
at org.dita.dost.ant.ExtensibleAntInvoker.execute(ExtensibleAntInvoker.java:190)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.Main.runBuild(Main.java:830)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)
Caused by: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:793)
at org.dita.dost.module.XsltModule.execute(XsltModule.java:105)
... 43 more
Caused by: net.sf.saxon.trans.XPathException: Errors were reported during stylesheet compilation
at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:225)
at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:107)
at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:788)
... 44 more



Thanks for your time!

Take care,
- Nick

Join main@dita-users.groups.io to automatically receive all group messages.