using DITA-OT1.6.3 with oXygen12.2
Posted: Tue Oct 30, 2012 11:39 pm
Hi
I'm still on oXygen12.2 and I need to use the DITA-OT1.6.3. I also need to use XEP. I'm on Win7, Java1.6.
I need to use DITA-OT1.6.3 because my content has a lot of <conref>s that will not process with the bundled DITA1.5.4. For that I also need to increase the memory used by the DITA-OT, but I figured that out yet.
What have I done already:
1. Created a New Transformation Scenario.
2. Installed XEP to C:\Program Files\RenderX\XEP and set the processor to XEP
3. Set the dita.dir to my local instance C:\DITAOT\DITA-OT1.6.3
4. Set the
But unfortunately the transformation does not complete correctly. See below for the last lines of the log file. The stage1a.xml has a lot of autogenerated hrefs to "#unique_X" (X = integer) that make the XSL-FO fail:
And the strange thing is: when I increase the memory for the OOTB DITA-OT1.6.3 startcmd.bat and run ant -f build_demo.xml with the correct parameters the processing ends happily after 10min with a correct PDF. I only tried FOP for this test.
I already learnt from extensive Googling that stage1a.xml is a step in DITA processing added by oXygen. So that is why I state my question on this forum: how can I use DITA-OT1.6.3 with oXygen12.2 (and do not say "upgrade to 14" because that is not option right now ). Should I circumvent the stage1a.xml, and if yes, how?
LOG:
I'm still on oXygen12.2 and I need to use the DITA-OT1.6.3. I also need to use XEP. I'm on Win7, Java1.6.
I need to use DITA-OT1.6.3 because my content has a lot of <conref>s that will not process with the bundled DITA1.5.4. For that I also need to increase the memory used by the DITA-OT, but I figured that out yet.
What have I done already:
1. Created a New Transformation Scenario.
2. Installed XEP to C:\Program Files\RenderX\XEP and set the processor to XEP
3. Set the dita.dir to my local instance C:\DITAOT\DITA-OT1.6.3
4. Set the
- maxJAvaMemory to 6g,
- the JVM argument to -D64 -Xms512m -Xmx6g
- and the java HOME to C:\Program Files (x86)\Java\jdk6\jre (apparently that is needed for the memory settings)
But unfortunately the transformation does not complete correctly. See below for the last lines of the log file. The stage1a.xml has a lot of autogenerated hrefs to "#unique_X" (X = integer) that make the XSL-FO fail:
Code: Select all
<topicref chunk="to-content" class="- map/topicref bookmap/chapter " first_topic_id="#unique_1" href="#unique_1" id="unique_1" ohref="doc_m_lnl_cnl_aimp1_h402_l402/concepts/con2_client_export_en_import.xml#client_export_en_import_F3B66125" type="concept"><topicmeta class="- map/topicmeta ">...
I already learnt from extensive Googling that stage1a.xml is a step in DITA processing added by oXygen. So that is why I state my question on this forum: how can I use DITA-OT1.6.3 with oXygen12.2 (and do not say "upgrade to 14" because that is not option right now ). Should I circumvent the stage1a.xml, and if yes, how?
LOG:
Code: Select all
transform.topic2fo.main:
[xslt] Processing C:\klanten\accountancy\temp\stage1a.xml to C:\klanten\accountancy\temp\stage2.fo
[xslt] Loading stylesheet C:\DITAOT\DITA-OT1.6.3\plugins\org.dita.pdf2\xsl\fo\topic2fo_shell_xep.xsl
[xslt] [PDFX005F][FATAL]: Topic reference (href : #unique_1) not found. Reference may be incorrect. Please correct your ditamap or bookmap file.
[xslt] Failed to process C:\klanten\accountancy\temp\stage1a.xml
BUILD FAILED
C:\DITAOT\DITA-OT1.6.3\build.xml:47: The following error occurred while executing this line:
C:\DITAOT\DITA-OT1.6.3\plugins\org.dita.pdf2\build.xml:170: The following error occurred while executing this line:
C:\DITAOT\DITA-OT1.6.3\plugins\org.dita.pdf2\build.xml:347: ; SystemID: file:/C:/DITAOT/DITA-OT1.6.3/xsl/common/output-message.xsl; Line#: 35; Column#: -1
net.sf.saxon.expr.instruct.TerminationException: Processing terminated by xsl:message at line 76 in output-message.xsl
at net.sf.saxon.expr.instruct.Message.processLeavingTail(Message.java:230)
at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:758)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:567)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:569)
at net.sf.saxon.expr.instruct.Template.expand(Template.java:225)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:284)
at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:308)
at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:758)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:567)
at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:758)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:569)
at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:208)
at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:368)
at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:636)
at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:340)
at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:636)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:286)
at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:308)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:569)
at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:208)
at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:368)
at net.sf.saxon.Controller.transformDocument(Controller.java:1887)
at net.sf.saxon.Controller.transform(Controller.java:1737)
at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:195)
at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:853)
at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:389)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)