Menu

Error using saxon6

Anonymous
2017-07-18
2017-07-18
  • Anonymous

    Anonymous - 2017-07-18

    Hi!
    Could you help me please:
    I try to use saxon6 as XSLT PROCESSOR. The result is the following error:
    "Fatal: Could not determine the DocBook version from .............. Looks like ........ is not a DocBook 4/5 document." Why?
    If i use xsltproc, everything is OK. Daps version 2.4.0.
    Thanks in advance.

     
  • Stefan Knorr

    Stefan Knorr - 2017-07-18

    Iirc, profiling is broken with saxon6 ... what you could try maybe is this:

    1. Profile with xsltproc: daps -d ... profile
    2. Build with saxon: daps -d ... pdf --xsltproc=saxon

    There is no way to use saxon just for one of the steps otherwise, I think. Sorry.

     

    Last edit: Stefan Knorr 2017-07-18
  • Anonymous

    Anonymous - 2017-07-18

    Stefan, Thank you for your answer.
    Unfortunately nothing has changed.
    command is:
    daps --debug --xsltprocessor=saxon -d DC-file pdf
    The error is the same:
    "ERROR: Fatal: Could not determine the DocBook version......."
    I added in file ../bin/daps
    echo $DOCBOOK_VERSION
    in case of xsltproc echo returns 5
    in case of saxon6 echo returns a lot of text like:
    Java virtual machine used: ..../bin/java classpath used: ..../java/xml-commons-apis.jar:.../java/jaxp_parser_impl.jar:../java/xml-commons-resolver12.jar:.../saxon65.jar::.../java/xml-commons-resolver.jar:/etc/java/resolver main class used: com.icl.saxon.StyleSheet flags used: '-Dxml.catalog.files=.../catalog' options used: arguments used: -x org.apache.xml.resolver.tools.ResolvingXMLReader -y org.apache.xml.resolver.tools.ResolvingXMLReader -r org.apache.xml.resolver.tools.CatalogResolver -w0 ../dcfile/dcfile/xml/file.xml /daps/daps-xslt/common/get-docbook-version.xsl 5

    And I want to ask you also about saxon9, does daps support it now?

     
  • Stefan Knorr

    Stefan Knorr - 2017-07-18

    Install the package xml-commons-resolver12 to get rid of the Java/resolver issues.

    However, I am not sure about why you see the "can't determine DocBook version" error:

    1. If this is DocBook 5, make sure the namespace xmlns:d="http://docbook.org/ns/docbook". Replace :d with something appropriate, which can also be nothing depending on how your normal tags look -- i.e. whether they are explicitly namespaced (like <d:book/>) or whether they are implicitly namespaced (like <book/>).
    2. If this is DocBook 4, can you check what the root element is? We are checking for specific root elements such as book, set, article, (...and a lot more actually)
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.