Open lueck opened 4 years ago
The problem is reproduced also on v1.x of the command-line XSpec.
On XSpec v1.x, x:*/@location
is rather primitive; you can't use advanced XPath expressions in @location
. You have to write every node in path using simple integer predicate. i.e. location="/t:TEI[1]/t:text[1]/t:body[1]/t:p[1]/t:app[1]/t:rdg[1]"
instead of location="//t:app[1]/t:rdg[1]"
.
See also xspec/xspec#1277.
The soon-to-be-released XSpec v2.0 has improved @location
in xspec/xspec#1107. That's why the problem is not reproduced on the recent master
branch of the command-line version.
Hi,
the
expect-report
element for schematron tests is not evaluated correctly. Where the command line version of xspec behaves as expected, the plugin does not. Here is the report of the command line version of xspec first on a test I've defined:And here is the report from the maven plugin:
The difference comes exactly from the evaluation of
expect-report
elements.For reproduction, I attach the schematron file and the xspec file (with
txt
file suffix due to supported files).witness.sch test_witness.xspec
Regards, Chris