Ha, and I wondered about that `jsaxon` and ‚fixed‘ it in my Docker build. Will update the Dockerfile once more … Thanks Hugh! Cheers Peter
Am 18.01.2018 um 15:32 schrieb Hugh Cayless
: I just posted a note on that issue. It's a classpath problem that would probably confound anyone who hadn't been around the block with Java a few hundred times.
On Thu, Jan 18, 2018 at 8:55 AM, Peter Stadler
wrote: And I added a multi stage Dockerfile to this branch which will 1. build the artifacts and 2. spin up a Tomcat [1] application server with these new apps. Finally, I set up an automated build at https://hub.docker.com/u/teic/ which will automatically build new images from every oxgarage branch. I’d be happy to hear whether and how it works for you!
Cheers Peter
[1] I had some trouble with the Jenkins version and there seems to be an issue that OxGarage only runs smoothly with Tomcat 7 (see https://github.com/peterstadler/oxgarage-docker/issues/2).
Am 18.01.2018 um 01:51 schrieb Hugh Cayless
: Hey Raff, hope you're feeling better. I think I've got Saxon 9.8.0-7 and the XSLT30Transformer working. I haven't tested it with a 3.0 transform, but it still works with regular transforms still, so that's good.
I've also started to get a handle on OxGarage itself, so maybe I'm ready to tackle some other bugs.
Hugh
On Fri, Dec 29, 2017 at 1:31 PM, Raffaele Viglianti < raffaeleviglianti@gmail.com> wrote:
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
wrote:
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
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
-- 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
-- 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