Hi Hugh,
Thanks, that was indeed the next thing to do. Obviously saxon 9 doesn't
even seem to be on the maven2 respositories, but I was able to install it
locally by copying the jar from the stylesheets repo and:
mvn install:install-file -DgroupId=net.sf.saxon -DartifactId=Saxon-HE
-Dversion=9.8 -Dpackaging=jar -Dfile=saxon9he.jar
Obviously this has led to a number of new errors in compilation, because
the API seems to have changed a fair bit. Will keep digging! I still
welcome help from others who would want to try out some Java...
Raff
On Fri, Dec 29, 2017 at 11:29 AM, Hugh Cayless
Hey Raff,
That error shows that for whatever reason Xslt30Transformer just isn't available. I'd look at the pom.xml. Even though there is a Saxon Jar file in the root directory, I'm not sure what's happening with it. The POM has a dependency on v9.4: https://github.com/TEIC/oxgarage/blob/master/tei-converter/pom.xml#L159, and it will be downloading that version and using it to compile. I'd try switching it to 9.8. Doesn't mean that won't break something else, of course!
Hugh
On Thu, Dec 28, 2017 at 2:10 PM, Raffaele Viglianti < raffaeleviglianti@gmail.com> wrote:
Hello Council,
I'm trying to get OxGarage to use XSLT3 so that it can run the new odd2json.xsl that I need for Roma, but I'm running into an error.
Saxon 9.8 and over can handle XSLT3. I see that OxGarage already has saxon9he.jar, though I couldn't find out which version it is. I tried switching it with a 9.8 version and run into the same issues.
OxGarage source code uses the class XsltTransformer to handle transformations in the class TEIConverter <https://github.com/TEIC/oxgarage/blob/master/tei- converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java#L31>. The transformer is then loaded with the method load() <https://github.com/TEIC/oxgarage/blob/master/tei- converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java#L544>. I see on the Saxon documentation <https://www.saxonica.com/html/documentation/javadoc/net/sf/saxon/s9api/ Xslt30Transformer.html> that the way of invoking XSLT3 transformations is by using a different class called Xslt30Transformer, which should also be able to run xslt 1 and 2.
So I tried switching XsltTransformer to Xslt30Transformer and using the method load30() instead of load() to load it.
When I try to compile with mvn compile, the compilation fails (see error below). I'll keep digging, but I'm wondering if anyone notice else would like to try to reproduce the error and help me figure out what's up.
All best and happy new year! Raff
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project tei-converter: Compilation failure: Compilation failure: [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/ src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[31,25] error: cannot find symbol [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/ src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[677,42] error: cannot find symbol [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/ src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[544,3] error: cannot find symbol [ERROR] class TEIConverter [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/ src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[544,39] error: cannot find symbol [ERROR] variable exec of type XsltExecutable [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/ src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[610,3] error: cannot find symbol [ERROR] class TEIConverter [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/ src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[610,39] error: cannot find symbol [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/ src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[929,3] error: cannot find symbol [ERROR] class TEIConverter [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/ src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[929,39] error: cannot find symbol [ERROR] -> [Help 1] -- tei-council mailing list tei-council@lists.tei-c.org http://lists.lists.tei-c.org/mailman/listinfo/tei-council
PLEASE NOTE: postings to this list are publicly archived
-- tei-council mailing list tei-council@lists.tei-c.org http://lists.lists.tei-c.org/mailman/listinfo/tei-council
PLEASE NOTE: postings to this list are publicly archived