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
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/.... The transformer is then loaded with the method load() https://github.com/TEIC/oxgarage/blob/master/tei-converter/src/main/java/pl/.... I see on the Saxon documentation https://www.saxonica.com/html/documentation/javadoc/net/sf/saxon/s9api/Xslt3... 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