Re: Morgana and Schematron configuration question

On 02.10.2020 21:22, David Birnbaum wrote:
> 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

I think the option naming the configuration file for Morgana needs to be
the first command line argument so put
   -config=/opt/morgana/MorganaXProc-IIIse-0.9.4.2-beta/config.xml
before
   adj.xpl

Received on Friday, 2 October 2020 21:03:09 UTC