Getting OxGarage to use XSLT 3

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]

Hi Raff— Quickly searching through the code, I wonder if other things might need to be altered—Do you know if XsltCompiler and XsltExecutable might need similar tweaks? (You may have already looked at this…) Elisa -- Elisa Beshero-Bondar, PhD Director, Center for the Digital Text | Associate Professor of English University of Pittsburgh at Greensburg | Humanities Division 150 Finoli Drive Greensburg, PA 15601 USA E-mail: ebb8@pitt.edu <mailto:ebb8@pitt.edu> Development site: http://newtfire.org <http://newtfire.org/>
On 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

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

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 <philomousos@gmail.com> 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 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

New stack for reference: [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/ComplexConverter.java:[277,22] error: constructor Serializer in class Serializer cannot be applied to given types; [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/DocXConverter.java:[76,22] error: constructor Serializer in class Serializer cannot be applied to given types; [ERROR] actual and formal argument lists differ in length [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/DocXConverter.java:[102,22] error: constructor Serializer in class Serializer cannot be applied to given types; [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[548,15] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[549,15] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[550,15] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[554,23] error: constructor Serializer in class Serializer cannot be applied to given types; [ERROR] actual and formal argument lists differ in length [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[556,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[557,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[614,15] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[615,15] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[616,15] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[620,23] error: constructor Serializer in class Serializer cannot be applied to given types; [ERROR] actual and formal argument lists differ in length [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[622,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[623,14] error: cannot find symbol [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[680,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[682,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[684,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[686,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[688,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[690,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[931,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[932,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[937,18] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[941,23] error: constructor Serializer in class Serializer cannot be applied to given types; [ERROR] actual and formal argument lists differ in length [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[942,14] error: cannot find symbol [ERROR] variable transformer of type Xslt30Transformer [ERROR] /home/rviglian/Projects/tei-code/oxgarage/tei-converter/src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java:[943,14] error: cannot find symbol 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 <philomousos@gmail.com> 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 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

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 <philomousos@gmail.com> 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

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 <philomousos@gmail.com>:
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 <philomousos@gmail.com> 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

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 <stadler@edirom.de> 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 <philomousos@gmail.com>:
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 <philomousos@gmail.com> 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

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 <philomousos@gmail.com>:
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 <stadler@edirom.de> 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 <philomousos@gmail.com>:
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 <philomousos@gmail.com> 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

Dear Hugh, Thank you so much for taking the time for doing this! And thanks Peter for updating the docker file. I haven't tried to use the new version with Roma yet, but will soon and report back. All best, Raff On Thu, Jan 18, 2018 at 10:00 AM, Peter Stadler <stadler@edirom.de> wrote: > 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 <philomousos@gmail.com>: > > > > 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 <stadler@edirom.de> > 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 <philomousos@gmail.com>: > >>> > >>> 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 <philomousos@gmail.com > > > >>>> 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 > >>>> 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 > >>>>> > >>>> -- > >>>> 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 >
participants (4)
-
Elisa Beshero-Bondar
-
Hugh Cayless
-
Peter Stadler
-
Raffaele Viglianti