Topics

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

Kristen James Eberlein
 

Hi, Nick.

I’ve run into this also. The simple fix was to rebuild the shell file, starting afresh with the shell file from the DITA-OT that I wanted to upgrade to.

Kris


On May 5, 2020, at 8:12 PM, Nicholas Mucks via groups.io <urbanrobots@...> wrote:


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

Nicholas Mucks
 

That’s a good idea. Thanks, Kris. I’ll give it a try.

Take care,
- Nick

Sent from mobile

On May 5, 2020, at 6:09 PM, Kristen James Eberlein <kris@...> wrote:

Hi, Nick.

I’ve run into this also. The simple fix was to rebuild the shell file, starting afresh with the shell file from the DITA-OT that I wanted to upgrade to.

Kris


On May 5, 2020, at 8:12 PM, Nicholas Mucks via groups.io <urbanrobots@...> wrote:


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

Kristen James Eberlein
 

Let us know if this works for you.


-- 
Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
Principal consultant, Eberlein Consulting LLC
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)

Nicholas Mucks
 

That did it, thanks!
We were also importing each XSL file one-by-one, but simply importing the base topic2fo.xsl file once at the beginning of the shell and then overriding them proves more efficient.

On Wednesday, May 6, 2020, 03:54:09 AM PDT, Kristen James Eberlein <kris@...> wrote:


Let us know if this works for you.


-- 
Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
Principal consultant, Eberlein Consulting LLC
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)

pablo gg
 

Hi Nick, Kris

 

I am exactly in the same situation (migrating a working plugin from 2.3 to 3.5) and I find similar errors in some scenarios.

 

However I don’t get what does it mean “to rebuild the shell file” which solved the problem for Nick.

 

For testing purposes, I am just executing dita-ot in CLI like:

 

                .\bin\dita –i testcase.ditamap –f newpdf

 

(no shell involved)

 

Or… are you referring to some topic2fo_shell_fop.xsl file instead?

 

Thanks!

Pablo G

 

Van: main@dita-users.groups.io <main@dita-users.groups.io> Namens Nicholas Mucks via groups.io
Verzonden: 06 May 2020 05:26
Aan: main@dita-users.groups.io
CC: DITA Users <dita-users@groups.io>
Onderwerp: Re: [dita-users] custom pdf2 plugin on OT3.5

 

That’s a good idea. Thanks, Kris. I’ll give it a try.

Take care,

- Nick

 

Sent from mobile



On May 5, 2020, at 6:09 PM, Kristen James Eberlein <kris@...> wrote:

Hi, Nick.

 

I’ve run into this also. The simple fix was to rebuild the shell file, starting afresh with the shell file from the DITA-OT that I wanted to upgrade to.

 

Kris



On May 5, 2020, at 8:12 PM, Nicholas Mucks via groups.io <urbanrobots@...> wrote:



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

 

Kristen James Eberlein
 

A custom PDF plug-in works by providing XSL files that override those in the DITA Open Toolkit. There are several different ways to specify the XSL overrides; I don't how which one your plug-in uses.

When I build custom PDF plug-ins, I use a "shell file" based on the level of the DITA-OT. I start with making a copy of the applicable DITA-OT file, for example, <DITA-OT-Directory>\plugins\org.dita.pdf2\xsl\fo\topic2fo.xsl. This is the base file that provides the order for the DITA-OT PDF plug-in to conduct imports of XSL files.

I then edit the copied file (let's call it foo.xsl) to include import statements for the XSL files in my custom PDF plug-in. For example, the following code snippet is from a custom plug-in that overrides four base DITA-OT XSL files: basic-settings.xsl, layout-masters.xsl, links-attr.xsl, and links.xsl. Notice that the import statements for the org.oasis-open.pdf plug-in directly follow those for the org.dita.pdf2 plug-in:

    ...
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/basic-settings.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/attrs/oasis-cn-basic-settings.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/layout-masters-attr.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/layout-masters.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/xsl/oasis-cn-layout-masters.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/links-attr.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/attrs/oasis-cn-links-attr.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:xsl/fo/links.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/xsl/oasis-cn-links.xsl"/>
    ...

Finally, I reference the copied file (foo.xsl) in the build file for my custom plug-in, for example:

      <target xmlns:dita="http://dita-ot.sourceforge.net" name="dita2oasis-pdf-committeeNote">
          <property name="customization.dir"
                    location="${dita.plugin.org.oasis-open.pdf.dir}/cfg"/>
          <property name="args.xsl.pdf"
                    location="${dita.plugin.org.oasis-open.pdf.dir}/cfg/fo/xsl/foo.xsl"/>
          <property name="pdf.formatter" value="ah"/>
          <property name="args.chapter.layout" value="BASIC"/>
          <antcall target="dita2pdf2"/>
        </target>

I find that this method provides the fewest precedence problems.

2.3 to DITA-OT 3.5 is a big jump!

Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
OASIS Distinguished Contributor
Principal consultant, Eberlein Consulting LLC
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)

On 7/13/2020 4:34 AM, pablo gg wrote:

Hi Nick, Kris

 

I am exactly in the same situation (migrating a working plugin from 2.3 to 3.5) and I find similar errors in some scenarios.

 

However I don’t get what does it mean “to rebuild the shell file” which solved the problem for Nick.

 

For testing purposes, I am just executing dita-ot in CLI like:

 

                .\bin\dita –i testcase.ditamap –f newpdf

 

(no shell involved)

 

Or… are you referring to some topic2fo_shell_fop.xsl file instead?

 

Thanks!

Pablo G

 

Van: main@dita-users.groups.io <main@dita-users.groups.io> Namens Nicholas Mucks via groups.io
Verzonden: 06 May 2020 05:26
Aan: main@dita-users.groups.io
CC: DITA Users <dita-users@groups.io>
Onderwerp: Re: [dita-users] custom pdf2 plugin on OT3.5

 

That’s a good idea. Thanks, Kris. I’ll give it a try.

Take care,

- Nick

 

Sent from mobile



On May 5, 2020, at 6:09 PM, Kristen James Eberlein <kris@...> wrote:

Hi, Nick.

 

I’ve run into this also. The simple fix was to rebuild the shell file, starting afresh with the shell file from the DITA-OT that I wanted to upgrade to.

 

Kris



On May 5, 2020, at 8:12 PM, Nicholas Mucks via groups.io <urbanrobots@...> wrote:



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

 

pablo gg
 

Hi!

 

Yes! It solved the problem! At least initially. All fo/attrs and xsl/fo files are integrated without errors.

 

As you suggested, the big leap between my old and new dita-ot versions will probably force me rewriting most if not all the xsl/fo’s because they basically don’t work.

 

Thanks a lot for your help, Kristen!

 

Van: main@dita-users.groups.io <main@dita-users.groups.io> Namens Kristen James Eberlein
Verzonden: 13 July
2020 14:22
Aan: main@dita-users.groups.io
Onderwerp: Re: [dita-users] custom pdf2 plugin on OT3.5

 

A custom PDF plug-in works by providing XSL files that override those in the DITA Open Toolkit. There are several different ways to specify the XSL overrides; I don't how which one your plug-in uses.

When I build custom PDF plug-ins, I use a "shell file" based on the level of the DITA-OT. I start with making a copy of the applicable DITA-OT file, for example, <DITA-OT-Directory>\plugins\org.dita.pdf2\xsl\fo\topic2fo.xsl. This is the base file that provides the order for the DITA-OT PDF plug-in to conduct imports of XSL files.

I then edit the copied file (let's call it foo.xsl) to include import statements for the XSL files in my custom PDF plug-in. For example, the following code snippet is from a custom plug-in that overrides four base DITA-OT XSL files: basic-settings.xsl, layout-masters.xsl, links-attr.xsl, and links.xsl. Notice that the import statements for the org.oasis-open.pdf plug-in directly follow those for the org.dita.pdf2 plug-in:

    ...
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/basic-settings.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/attrs/oasis-cn-basic-settings.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/layout-masters-attr.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/layout-masters.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/xsl/oasis-cn-layout-masters.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/links-attr.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/attrs/oasis-cn-links-attr.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:xsl/fo/links.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/xsl/oasis-cn-links.xsl"/>
    ...

Finally, I reference the copied file (foo.xsl) in the build file for my custom plug-in, for example:

      <target xmlns:dita="http://dita-ot.sourceforge.net" name="dita2oasis-pdf-committeeNote">
          <property name="customization.dir"
                    location="${dita.plugin.org.oasis-open.pdf.dir}/cfg"/>
          <property name="args.xsl.pdf"
                    location="${dita.plugin.org.oasis-open.pdf.dir}/cfg/fo/xsl/foo.xsl"/>

          <property name="pdf.formatter" value="ah"/>
          <property name="args.chapter.layout" value="BASIC"/>
          <antcall target="dita2pdf2"/>
        </target>

I find that this method provides the fewest precedence problems.

2.3 to DITA-OT 3.5 is a big jump!

Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
OASIS Distinguished Contributor
Principal consultant, Eberlein Consulting LLC
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)

On 7/13/2020 4:34 AM, pablo gg wrote:

Hi Nick, Kris

 

I am exactly in the same situation (migrating a working plugin from 2.3 to 3.5) and I find similar errors in some scenarios.

 

However I don’t get what does it mean “to rebuild the shell file” which solved the problem for Nick.

 

For testing purposes, I am just executing dita-ot in CLI like:

 

                .\bin\dita –i testcase.ditamap –f newpdf

 

(no shell involved)

 

Or… are you referring to some topic2fo_shell_fop.xsl file instead?

 

Thanks!

Pablo G

 

Van: main@dita-users.groups.io <main@dita-users.groups.io> Namens Nicholas Mucks via groups.io
Verzonden: 06 May 2020 05:26
Aan: main@dita-users.groups.io
CC: DITA Users <dita-users@groups.io>
Onderwerp: Re: [dita-users] custom pdf2 plugin on OT3.5

 

That’s a good idea. Thanks, Kris. I’ll give it a try.

Take care,

- Nick

 

Sent from mobile




On May 5, 2020, at 6:09 PM, Kristen James Eberlein <kris@...> wrote:

Hi, Nick.

 

I’ve run into this also. The simple fix was to rebuild the shell file, starting afresh with the shell file from the DITA-OT that I wanted to upgrade to.

 

Kris




On May 5, 2020, at 8:12 PM, Nicholas Mucks via groups.io <urbanrobots@...> wrote:



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

 

Kristen James Eberlein
 

I'm very glad that I could help.

Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
OASIS Distinguished Contributor
Principal consultant, Eberlein Consulting LLC
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)

On 7/14/2020 3:18 AM, pablo gg wrote:

Hi!

 

Yes! It solved the problem! At least initially. All fo/attrs and xsl/fo files are integrated without errors.

 

As you suggested, the big leap between my old and new dita-ot versions will probably force me rewriting most if not all the xsl/fo’s because they basically don’t work.

 

Thanks a lot for your help, Kristen!

 

Van: main@dita-users.groups.io <main@dita-users.groups.io> Namens Kristen James Eberlein
Verzonden: 13 July
2020 14:22
Aan: main@dita-users.groups.io
Onderwerp: Re: [dita-users] custom pdf2 plugin on OT3.5

 

A custom PDF plug-in works by providing XSL files that override those in the DITA Open Toolkit. There are several different ways to specify the XSL overrides; I don't how which one your plug-in uses.

When I build custom PDF plug-ins, I use a "shell file" based on the level of the DITA-OT. I start with making a copy of the applicable DITA-OT file, for example, <DITA-OT-Directory>\plugins\org.dita.pdf2\xsl\fo\topic2fo.xsl. This is the base file that provides the order for the DITA-OT PDF plug-in to conduct imports of XSL files.

I then edit the copied file (let's call it foo.xsl) to include import statements for the XSL files in my custom PDF plug-in. For example, the following code snippet is from a custom plug-in that overrides four base DITA-OT XSL files: basic-settings.xsl, layout-masters.xsl, links-attr.xsl, and links.xsl. Notice that the import statements for the org.oasis-open.pdf plug-in directly follow those for the org.dita.pdf2 plug-in:

    ...
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/basic-settings.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/attrs/oasis-cn-basic-settings.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/layout-masters-attr.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/layout-masters.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/xsl/oasis-cn-layout-masters.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/links-attr.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/attrs/oasis-cn-links-attr.xsl"/>
    <xsl:import href="plugin:org.dita.pdf2:xsl/fo/links.xsl"/>
    <xsl:import href="plugin:org.oasis-open.pdf:cfg/fo/xsl/oasis-cn-links.xsl"/>
    ...

Finally, I reference the copied file (foo.xsl) in the build file for my custom plug-in, for example:

      <target xmlns:dita="http://dita-ot.sourceforge.net" name="dita2oasis-pdf-committeeNote">
          <property name="customization.dir"
                    location="${dita.plugin.org.oasis-open.pdf.dir}/cfg"/>
          <property name="args.xsl.pdf"
                    location="${dita.plugin.org.oasis-open.pdf.dir}/cfg/fo/xsl/foo.xsl"/>

          <property name="pdf.formatter" value="ah"/>
          <property name="args.chapter.layout" value="BASIC"/>
          <antcall target="dita2pdf2"/>
        </target>

I find that this method provides the fewest precedence problems.

2.3 to DITA-OT 3.5 is a big jump!

Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
OASIS Distinguished Contributor
Principal consultant, Eberlein Consulting LLC
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)

On 7/13/2020 4:34 AM, pablo gg wrote:

Hi Nick, Kris

 

I am exactly in the same situation (migrating a working plugin from 2.3 to 3.5) and I find similar errors in some scenarios.

 

However I don’t get what does it mean “to rebuild the shell file” which solved the problem for Nick.

 

For testing purposes, I am just executing dita-ot in CLI like:

 

                .\bin\dita –i testcase.ditamap –f newpdf

 

(no shell involved)

 

Or… are you referring to some topic2fo_shell_fop.xsl file instead?

 

Thanks!

Pablo G

 

Van: main@dita-users.groups.io <main@dita-users.groups.io> Namens Nicholas Mucks via groups.io
Verzonden: 06 May 2020 05:26
Aan: main@dita-users.groups.io
CC: DITA Users <dita-users@groups.io>
Onderwerp: Re: [dita-users] custom pdf2 plugin on OT3.5

 

That’s a good idea. Thanks, Kris. I’ll give it a try.

Take care,

- Nick

 

Sent from mobile




On May 5, 2020, at 6:09 PM, Kristen James Eberlein <kris@...> wrote:

Hi, Nick.

 

I’ve run into this also. The simple fix was to rebuild the shell file, starting afresh with the shell file from the DITA-OT that I wanted to upgrade to.

 

Kris




On May 5, 2020, at 8:12 PM, Nicholas Mucks via groups.io <urbanrobots@...> wrote:



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