OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] DocBook-XML, webhelp and no more DTM-Ids available


Hi,

can anyone please test the attached files. I'm not sure if it's the setup 
of the machine or the document structure...

	pass.xml -> fine result, everything works as expected

	failed.xml -> won't work. Only one table row more as pass.xml...

Thanks in advance.
Volker 

On Mon, 24 Mar 2014 18:27:29 +0100
Volker Bernhard Duetsch <volker.duetsch@gmx.de> wrote:

> Hi,
> 
> I encounter problems by processing a docbook-xml test file of 11907 lines total
> 325.050 bytes. If I reduce file size it will be corectly processed... I've read a
> lot and asked some questions on stackoverflow, but problem still exists.
> 
> This works fine:
> "Step 5: Test the package by running the command ant webhelp
> -Doutput-dir=test-ouput at the command line in the webhelp directory. "
> as described under:
> http://docbook.sourceforge.net/release/xsl-ns/1.77.0/webhelp/docs/content/ch02s01.html
> So I think basic setup should be fine and of course with smaller files of
> my own it works, too.
> 
> After searching for the error message I finally found:
> http://xml.apache.org/xalan-j/faq.html#faq-N10340
> Seems that an old xalan-bug could be the root of my probs.
> 
> But I tought I've configured it correct:
> ...
> xslt-processor-classpath=d:\\apps\\saxon\\saxon.jar
> xercesImpl.jar=d:\\apps\\xerces-2_11_0\\xercesImpl.jar
> xml-apis.jar=d:\\apps\\xerces-2_11_0\\xml-apis.jar
> ...
> 
> This is my complete build.properties file located in
> d:\apps\docbook-xsl-1.78.1\webhelp 
> ----------------------------------------------------------------------------- 
> # The path (relative to the build.xml file) to your input document.
> # To use your own input document, create a build.xml file of your own
> # and import this build.xml.
> input-xml=docsrc/readme.xml
> 
> # The directory in which to put the output files. 
> # This directory is created if it does not exist.
> output-dir=docs
> 
> # If you are using a customization layer that imports webhelp.xsl, use
> # this property to point to it. 
> stylesheet-path=${ant.file.dir}/xsl/webhelp.xsl
> 
> # If your document has image directories that need to be copied
> # to the output directory, you can list patterns here. 
> # See the Ant documentation for fileset for documentation
> # on patterns.
> #input-images-dirs=images/**,figures/**,graphics/**
> 
> # By default, the ant script assumes your images are stored
> # in the same directory as the input-xml. If you store your
> # image directories in another directory, specify it here.
> # and uncomment this line.
> #input-images-basedir=/path/to/image/location
> 
> # Modify the follosing so that they point to your local
> # copy of the jars indicated:
> # * Saxon 6.5 jar
> # * Xerces 2: xercesImpl.jar
> # * xml-commons: xml-apis.jar
> xslt-processor-classpath=d:\\apps\\saxon\\saxon.jar
> xercesImpl.jar=d:\\apps\\xerces-2_11_0\\xercesImpl.jar
> xml-apis.jar=d:\\apps\\xerces-2_11_0\\xml-apis.jar
> 
> # For non-ns version only, this validates the document 
> # against a dtd.
> validate-against-dtd=false
> 
> # The extension for files to be indexed (html/htm/xhtml etc.)
> html.extension=html
> 
> # Set this to false if you don't need a search tab.
> webhelp.include.search.tab=true
> 
> # indexer-language is used to tell the search indexer which language
> # the docbook is written.  This will be used to identify the correct
> # stemmer, and punctuations that differs from language to language.
> # see the documentation for details. en=English, fr=French, de=German,
> # zh=Chinese, ja=Japanese etc.  
> webhelp.indexer.language=de
> 
> # Enables/Disables stemming
> # Stemming allows better querying for the search
> enable.stemming=true
> 
> #Set the table of contents file. This file will not be indexed.
> #toc.file=dummy.html
> 
> #Used for adding branding specific contents to the html files.
> #For example, the url docbook.org, Google Analytics id etc.
> branding=docbook
> brandname=DocBook
> 
> # Set admon.graphics to 1 to user graphics for note, tip, etc.
> admon.graphics=0
> suppress.footer.navigation=0
> 
> # Use this property to specify a list of file 
> # names to exclude from indexing. For example,
> # you may choose not to index your book index.
> indexer-excluded-files=ix01.html  
> ----------------------------------------------------------------------------- 
> 
> This is my build.xml located in the documents project folder.
> ----------------------------------------------------------------------------- 
> <project>
>   <property name="input-xml" value="dashboard.xml"/>
>   <property name="input-images-dirs" value="images/** figures/** graphics/**"/>
>   <property name="output-dir" value="docs"/>
>   <import file="d:/apps/docbook-xsl-1.78.1/webhelp/build.xml"/>
> </project> 
> ----------------------------------------------------------------------------- 
> 
> Env:
> - Windows 8
> - ant 1.9.3
> - java version "1.8.0"
>   Java(TM) SE Runtime Environment (build 1.8.0-b132)
>   Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
> - docbook-xsl-1.78.1
> 
> 
> Complete processing log:
> ----------------------------------------------------------------------------- 
> D:\projekte\dashboard>ant webhelp
> Buildfile: D:\projekte\dashboard\build.xml
> validate:
> 
> clean:
>    [delete] Deleting directory D:\projekte\dashboard\docs
> 
> chunk:
>     [mkdir] Created dir: D:\projekte\dashboard\docs
>      [xslt] Processing D:\projekte\dashboard\dashboard.xml to D:\projekte\dashboard\docs\null449645979
>      [xslt] Loading stylesheet d:\apps\docbook-xsl-1.78.1\profiling\profile.xsl
>      [xslt] Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
>      [xslt] Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
>      [xslt] Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
>      [xslt] Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
>      [xslt] Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
>      [xslt] Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
>      [xslt] : Error! Keine weiteren DTM-IDs verf³gbar
>      [xslt] Failed to process D:\projekte\dashboard\dashboard.xml
> 
> BUILD FAILED
> d:\apps\docbook-xsl-1.78.1\webhelp\build.xml:36: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.dtm.DTMException: Keine weiteren DTM-IDs verf³gbar
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:752)
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:357)
>         at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:195)
>         at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:876)
>         at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:414)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:483)
>         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:435)
>         at org.apache.tools.ant.Target.performTasks(Target.java:456)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
>         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:1248)
>         at org.apache.tools.ant.Main.runBuild(Main.java:851)
>         at org.apache.tools.ant.Main.startAnt(Main.java:235)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
> Caused by: com.sun.org.apache.xml.internal.dtm.DTMException: Keine weiteren DTM-IDs verf³gbar
>         at com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.addDTM(DTMManagerDefault.java:151)
>         at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.getResultTreeFrag(SAXImpl.java:1826)
>         at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.getResultTreeFrag(DOMAdapter.java:438)
>         at com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM.getResultTreeFrag(MultiDOM.java:640)
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.applyTemplates1()
>         at profile.template$dot$16()
>         at profile.applyTemplates()
>         at profile.transform()
>         at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:617)
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:745)
>         ... 21 more
> ---------
> com.sun.org.apache.xml.internal.dtm.DTMException: Keine weiteren DTM-IDs verf³gbar
>         at com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.addDTM(DTMManagerDefault.java:151)
>         at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.getResultTreeFrag(SAXImpl.java:1826)
>         at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.getResultTreeFrag(DOMAdapter.java:438)
>         at com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM.getResultTreeFrag(MultiDOM.java:640)
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.template$dot$1()
>         at profile.applyTemplates1()
>         at profile.applyTemplates1()
>         at profile.template$dot$16()
>         at profile.applyTemplates()
>         at profile.transform()
>         at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:617)
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:745)
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:357)
>         at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:195)
>         at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:876)
>         at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:414)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:483)
>         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:435)
>         at org.apache.tools.ant.Target.performTasks(Target.java:456)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
>         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:1248)
>         at org.apache.tools.ant.Main.runBuild(Main.java:851)
>         at org.apache.tools.ant.Main.startAnt(Main.java:235)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
> 
> Total time: 13 seconds
> ----------------------------------------------------------------------------- 
> 
> What do I have to configure that the saxon instead of xalan is correctly used or what else did I miss?
> 
> Thanks in advance.
> Volker 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

Attachment: pass.xml
Description: application/xml

Attachment: failed.xml
Description: application/xml



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]