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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
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/>).
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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "DAPS General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion, old (read-only)"
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.
Iirc, profiling is broken with saxon6 ... what you could try maybe is this:
daps -d ... profile
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
View and moderate all "DAPS General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion, old (read-only)"
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?
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:
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/>
).