Open thomasmaintenance opened 4 years ago
This seems to be the same error that had been reported in #3. In the lengthy comment I added there I basically wrote that I fixed it (and other issues). Just now I followed the README instructions and I got this output:
$ calabash/calabash.sh -i source=xml2tex/example/example.xml -i conf=xml2tex/example/conf-hubcssa.xml xml2tex/xpl/xml2tex.xpl
INFO : cascade/xpl/load-cascaded.xpl:43:59:load-cascaded: using file:/C:/cygwin/home/gerrit/Hogrefe/BookTagSet/asyoulike/xml2tex/xsl/xml2tex.xsl
INFO : cascade/xpl/load-cascaded.xpl:43:59:load-cascaded: using file:/C:/cygwin/home/gerrit/Hogrefe/BookTagSet/asyoulike/xml2tex/xsl/calstable2tabular.xsl
WARN : file:///C:/cygwin/home/gerrit/Hogrefe/BookTagSet/asyoulike/xslt-util/functx/xsl/functx.xsl:35:66:Stylesheet module http://transpect.io/xslt-util/functx/xsl/functx.xsl is included or imported more than once. This is permitted, but may lead to errors or unexpected behavior
INFO : cascade/xpl/load-cascaded.xpl:43:59:load-cascaded: using file:///C:/cygwin/home/gerrit/Hogrefe/BookTagSet/asyoulike/mml-normalize/xsl/mml-normalize.xsl
Message: Mode: mml2tex-grouping debugs into debug/mml2tex/01.mml2tex-grouping.xml
Message: Mode: mml2tex-preprocess debugs into debug/mml2tex/05.mml2tex-preprocess.xml
INFO : cascade/xpl/load-cascaded.xpl:43:59:load-cascaded: using file:/C:/cygwin/home/gerrit/Hogrefe/BookTagSet/asyoulike/mml2tex/xsl/invoke-mml2tex.xsl
Message: Mode: escape-bad-chars debugs into debug/xml2tex/06.escape-bad-chars.xml
Message: Mode: apply-regex debugs into debug/xml2tex/07.apply-regex.xml
Message: Mode: replace-chars debugs into debug/xml2tex/09.replace-chars.xml
Message: Mode: dissolve-pi debugs into debug/xml2tex/10.dissolve-pi.xml
Message: Mode: apply-xpath debugs into debug/xml2tex/11.apply-xpath.xml
Message: Mode: clean debugs into debug/xml2tex/12.clean.xml
% docx2tex 1.1 --- ``Escape from MS Island''
%
% docx2tex is Open Source and
% you can download it on GitHub:
% https://github.com/transpect/docx2tex
%
\documentclass{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{color}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsxtra}
\usepackage{wasysym}
\usepackage{isomath}
\usepackage{mathtools}
\usepackage{txfonts}
\usepackage{upgreek}
\usepackage{tipa}
\usepackage{enumerate}
\usepackage{tensor}
\usepackage{pifont}
\usepackage{soul}
\begin{document}
Hello world
\begin{equation*}
\genfrac{}{}{0pt}{}{ n }{ k }
\end{equation*}
\end{document}
Please check that xmlcatalog/catalog.xml is exactly as described in the readme, and also at exactly the same location relative to the project directory, called asyoulike
in the readme.
Have you cloned the saxon98 branch of calabash?
Did the submodule recursion succeeed? If, for example, the file calabash/extensions/transpect/rng-extension/xpl/rng-validate-to-PI.xpl
is below asyoulike
, then it succeeded.
Ah, I noticed that you use OpenJDK 11. This is buggy, but I think in particular with respect to class paths (on mingw, it prepends the absolute path of the current working directory to the classpath, separated by a colon). I don’t think it is responsible for this catalog resloution problem (URIs like http://transpect.io/cascade/xpl/load-cascaded.xpl won’t be catalog-resolved, which results in the “Not a pipeline or library: html” error). But if you don’t find another explanation why it didn’t work, please try OpenJDK 13.
And you might want to try docx2tex which comes as a pre-packaged distribution. If this doesn’t run, returning the same error, then it’s probably a Java version related issue that might be fixed by using Java 8 or 13.
Hi, Following the install instructions I get this error:
bkelly ~ calabash/calabash.sh -i source=xml2tex/example/example.xml -i conf=xml2tex/example/conf-hubcssa.xml xml2tex/xpl/xml2tex.xpl ERROR: http://transpect.github.io/../index.html:1:107:Not a pipeline or library: html ERROR: http://transpect.github.io/../index.html:1:107:Not a pipeline or library: html ERROR: err:XS0044:Unexpected step name: tr:load ERROR: It is a static error if any element in the XProc namespace or any step has element children other than those specified for it by this specification. In particular, the presence of atomic steps for which there is no visible declaration may raise this error. bkelly ~ Documents Lexique java -version openjdk version "11.0.6" 2020-01-14 OpenJDK Runtime Environment 18.9 (build 11.0.6+10) OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10, mixed mode, sharing)