Morgana and Schematron configuration question

Daer xproc-dev,

I'm stumbling over configuring Schematron validation in MorganaXProc-IIIse
0.9.4.2-beta and I would be grateful if someone could help me track down
where I've done astray. All of the Morgana functionality seems to be
working except Schematron. I've done the following:


   1. Installed Morgana at */opt/morgana/MorganaXProc-IIIse-0.9.4.2-beta/*.
   It runs as expected.
   2. Copied *saxon-ee-10.0.jar* into
   */opt/morgana/MorganaXProc-IIIse-0.9.4.2-beta/MorganaXProc-IIIse_lib*.
   Morgana finds and uses Saxon when I run *zsh
   /opt/morgana/MorganaXProc-IIIse-0.9.4.2-beta/Morgana.sh $1
   -xslt-connector=Saxon10 -xquery-connector=Saxon10* on the command line.
   3. To try to use Schematron I then:
      1. Copied *schxslt-1.5.1.jar* into that same Morgana lib subdirectory.
      2. Downloaded SchXSLT to */opt/schxslt/schxslt-1.5.1/*.  That
      directory contains a subdirectory called *2.0*, which contains the
      SchXSLT XSLT files.
      3. Edited the config.xml file in my Morgana main directory to include
      the line
      *<path_to_SchXSLT_2>/opt/schxslt/schxslt-1.5.1/2.0</path_to_SchXSLT_2>*
      .
      4. Tried running an XProc pipeline from the command line with *zsh
      /opt/morgana/MorganaXProc-IIIse-0.9.4.2-beta/Morgana.sh $1
      -config=/opt/morgana/MorganaXProc-IIIse-0.9.4.2-beta/config.xml
      -xslt-connector=Saxon10 -xquery-connector=Saxon10*.


This fails with the following error message::

djb@koala-4 adj % zsh
/opt/morgana/MorganaXProc-IIIse-0.9.4.2-beta/Morgana.sh adj.xpl
-config=/opt/morgana/MorganaXProc-IIIse-0.9.4.2-beta/config.xml
-xslt-connector=Saxon10 -xquery-connector=Saxon10
=================================
MorganaXProc-IIIse 0.9.4.2-beta
Copyright 2011-2020 by <xml-project /> Achim Berndzen
=================================

[15:04:43.551] Selecting adjectives from dictionary
Using Saxon-EE 10.0. XSLT and XQuery processor developed by Saxonica Limited
[15:04:46.102] Verifying that all paradigms in dictionary are in paradigms
file
Using Saxon-EE 10.0. XSLT and XQuery processor developed by Saxonica Limited
SchXslt is copyright (c) 2018-2020 by David Maus <dmaus@dmaus.name> and
released under the terms of the MIT license.
Unable to find path for SchXSLT for XSLT 2.0.
<?xml version="1.0" encoding="UTF-8"?>
<c:errors xmlns:c="http://www.w3.org/ns/xproc-step"><c:error
code="err:XC0151" name="!1.4" type="p:validate-with-schematron"
href="file:///Users/djb/repos/cz/pos/adj/adj.xpl" line="35" column="31"
xmlns:p="http://www.w3.org/ns/xproc" xmlns:err="
http://www.w3.org/ns/xproc-error"><message>Error occurred: Unable to
initialize schematron templates. Reason: Required files for XSLT 2.0 based
Schematron not found. Please check your config. [java.lang.Exception]
[java.lang.Exception]</message></c:error></c:errors>

It looks as if there must be some configuration step that I've overlooked
or implemented incorrectly, but when I read the Morgana documentation at
https://www.xml-project.com/files/doc/manual.html, I can't spot the
difference between the instructions there and what I've done. Might someone
be able to advise? Thank you!

Best,

David

Received on Friday, 2 October 2020 19:23:04 UTC