using DITA-OT1.6.3 with oXygen12.2

fleert
Posts: 9
Joined: Tue Oct 30, 2012 10:56 pm

using DITA-OT1.6.3 with oXygen12.2

Post by fleert » 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
  • 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)
5. Fiddled with the libraries, added file:/C:/DITAOT/DITA-OT1.6.3/lib/dost.jar and file:/C:/DITAOT/DITA-OT1.6.3/lib/commons-codec-1.4.jar

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 ">...
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:

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)

Radu
Posts: 6380
Joined: Fri Jul 09, 2004 5:18 pm

Re: using DITA-OT1.6.3 with oXygen12.2

Post by Radu » Wed Oct 31, 2012 10:17 am

Hi,

A problem like this:

Code: Select all

 [xslt] [PDFX005F][FATAL]: Topic reference (href : #unique_1) not found. Reference may be incorrect. Please correct your ditamap or bookmap file.
usually means that a certain reference is broken in the DITA content.

If you open the DITA Map in the DITA Maps Manager, there is a Validate and check for completeness toolbar button which can be used to check for such broken references.
If you find any, please fix them first.

If it still does not work for you, please post the entire content received in the console output.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

fleert
Posts: 9
Joined: Tue Oct 30, 2012 10:56 pm

Re: using DITA-OT1.6.3 with oXygen12.2

Post by fleert » Wed Oct 31, 2012 12:58 pm

hi Radu

Thanks for the quick reply.

Off course I validated the map and files before running the Transformation Scenario. That is not the problem :-)
I did some further testing and found out that the transformation with OT1.6.3 cannot cope with conrefs.
I created a small testset (one ditamap and 2 topics). Without conrefs the transformation with OT1.6.3 succeeds. But when I insert a conref to a conref "library":

Code: Select all

<ph outputclass="AVcModule" conref="conref/conref_source_modulenamen.dita#conref_src_mod/_29F0OC1B6"></ph>
the file and ditamap validate perfectly. Control-Enter on the conref opens the "library file".

But now the transformation with DITA1.6.3 fails with the same error. I can send the test files and log if you want
Using the OOTB oXygen12.2 DITA-OT1.5.4 does succeed.

My conclusion would be that the failing is caused by the conrefs. Any thoughts?

regards, Theun

Radu
Posts: 6380
Joined: Fri Jul 09, 2004 5:18 pm

Re: using DITA-OT1.6.3 with oXygen12.2

Post by Radu » Wed Oct 31, 2012 1:22 pm

Hi Theun,

Oxygen 14.1 comes with DITA OT 1.6.1 and I have not looked into DITA OT 1.6.3, maybe it's a newly added bug.
Yes, please send me the sample files and log (support@oxygenxml.com), I will look into this when I have the time.
Out of curiosity, could you try to install Oxygen 14.1 and use it to produce the PDF? I can generate a trial license key for you or you could request one here:

http://oxygenxml.com/register.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

fleert
Posts: 9
Joined: Tue Oct 30, 2012 10:56 pm

Re: using DITA-OT1.6.3 with oXygen12.2

Post by fleert » Wed Oct 31, 2012 2:06 pm

Hi Radu

I sent the test files + all output + a copy of the log (DITA1.6.3-test.log) to support.

I already evaluated oxygen14. Off course, I would like to add :-)
So my trail has expired :-( If you can get me a new one, I would be glad to test DITA1.6.3.

regards, Theun

fleert
Posts: 9
Joined: Tue Oct 30, 2012 10:56 pm

Re: using DITA-OT1.6.3 with oXygen12.2

Post by fleert » Wed Oct 31, 2012 4:39 pm

Radu wrote:Oxygen 14.1 comes with DITA OT 1.6.1 and I have not looked into DITA OT 1.6.3, maybe it's a newly added bug. [...] Out of curiosity, could you try to install Oxygen 14.1 and use it to produce the PDF?
Yes. I installed 14.1, created a new Transformation Scenario, set the memory parameters to max, set XEP folde, did not need to set the DITA-OT.dir and voila, like a charm.

Thanks a lot! I can work for 31 days now :-)
Would you be so kind to keep me posted on your investigation?

regards
Theun

Radu
Posts: 6380
Joined: Fri Jul 09, 2004 5:18 pm

Re: using DITA-OT1.6.3 with oXygen12.2

Post by Radu » Wed Oct 31, 2012 5:15 pm

Hi Theun,

I reproduced the problem, then I added to the Libraries list the path to the "DITA-OT/lib" folder, in my case it was something like:

file:/C:/Users/radu_coravu/Desktop/DITA-OT1.6.3/lib/

and it then worked for me.
The thing is that newer versions of the DITA OT also need to have in the libraries path the path to the "lib" directory from the custom DITA OT installation.

Please tell me if this worked for you.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

fleert
Posts: 9
Joined: Tue Oct 30, 2012 10:56 pm

Re: using DITA-OT1.6.3 with oXygen12.2

Post by fleert » Sat Nov 03, 2012 6:49 pm

hi Radu

I added C:\DITAOT\DITA-OT1.6.3\lib to the libraries. I tried with the C:\DITAOT\DITA-OT1.6.3\lib\dost.jar and C:\DITAOT\DITA-OT1.6.3\lib\common-codecs.jar, also without those jars, and even removed ${frameworks}/dita/DITA-OT. In each case, the build failed with the error below:

Code: Select all

gen-list:
[gen-list] GenMapAndTopicListModule.execute(): Starting...
[gen-list] Using Xerces grammar pool for DTD and schema caching.
[gen-list] Processing C:\klanten\accountview\dev\laatste-versie-content\test\doc_m_lnl_cnl_aimp1_h402_l402\doc_m_lnl_cnl_aimp1_h402_l402-klein.ditamap
[gen-list] GenMapAndTopicListModule.execute(): Execution time: 0.535 seconds

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.base\build_preprocess.xml:27: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.SubstitutionGroupHandler.<init>(Lorg/apache/xerces/impl/xs/XSGrammarBucket;)V
at org.apache.xerces.impl.xs.XMLSchemaValidatorXerces.<init>(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.<init>(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.configurePipeline(Unknown Source)
at org.apache.xerces.parsers.XIncludeAwareParserConfiguration.configurePipeline(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.dita.dost.reader.GenListModuleReader.parse(GenListModuleReader.java:609)
at org.dita.dost.module.GenMapAndTopicListModule.processFile(GenMapAndTopicListModule.java:449)
at org.dita.dost.module.GenMapAndTopicListModule.processWaitList(GenMapAndTopicListModule.java:418)
at org.dita.dost.module.GenMapAndTopicListModule.execute(GenMapAndTopicListModule.java:288)
at org.dita.dost.pipeline.PipelineFacade.execute(PipelineFacade.java:63)
at org.dita.dost.invoker.ExtensibleAntInvoker.execute(ExtensibleAntInvoker.java:266)
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)

Total time: 1 second

The process finished with exit code: 1
What could cause this?

regards,
Theun

Radu
Posts: 6380
Joined: Fri Jul 09, 2004 5:18 pm

Re: using DITA-OT1.6.3 with oXygen12.2

Post by Radu » Mon Nov 05, 2012 12:21 pm

Hi Theun,

I think the problem is similar with this one:

http://www.oxygenxml.com/pipermail/oxyg ... 04192.html

Basically in the Libraries list the path to your custom dost.jar should be before the path which points to the xercesImpl.jar from the Oxygen libraries.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

fleert
Posts: 9
Joined: Tue Oct 30, 2012 10:56 pm

Re: using DITA-OT1.6.3 with oXygen12.2

Post by fleert » Thu Nov 08, 2012 12:52 pm

hi Radu

finally find the time to test your solution on 12.2. I'm glad to report that setting the correct order of libraries did the trick. I can now work with my licensed 12.2 again.

That means that I will have to stop working with 14. Too bad :-(

thanks for all your help!
Theun

Post Reply