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:
Running Tests...
Testing with SAXON HE 9.9.1.6
Test schematron validation of the consistency of witness attributes
..report parallel use
not report witness002 //t:app[1]/t:lem[1]
report witness002 //t:app[1]/t:rdg[1]
not report witness002 //t:app[1]/t:rdg[2]
report witness002 //t:app[1]/t:rdg[3]
not report witness002 //t:app[1]/t:rdg[4]
not report witness002 //t:app[1]/t:rdg[5]
not report witness002 //t:app[1]/t:rdg[6]
not report witness002 //t:app[2]/t:lem[1]
not report witness002 //t:app[2]/t:rdg[1]
not report witness002 //t:app[2]/t:rdg[2]
report witness002 //t:app[2]/t:rdg[3]
..report use of non-registered witnesses
not report witness001 //t:app[1]/t:lem[1]
not report witness001 //t:app[1]/t:rdg[1]
not report witness001 //t:app[1]/t:rdg[2]
not report witness001 //t:app[1]/t:rdg[3]
not report witness001 //t:app[1]/t:rdg[4]
not report witness001 //t:app[1]/t:rdg[5]
not report witness001 //t:app[1]/t:rdg[6]
not report witness001 //t:app[2]/t:lem[1]
not report witness001 //t:app[2]/t:rdg[1]
report witness001 //t:app[2]/t:rdg[2]
report witness001 //t:app[2]/t:rdg[3]
Formatting Report...
passed: 22 / pending: 0 / failed: 0 / total: 22
And here is the report from the maven plugin:
Test schematron validation of the consistency of witness attributes
..report parallel use
not report witness002 //t:app[1]/t:lem[1]
report witness002 //t:app[1]/t:rdg[1]
FAILED
not report witness002 //t:app[1]/t:rdg[2]
report witness002 //t:app[1]/t:rdg[3]
FAILED
not report witness002 //t:app[1]/t:rdg[4]
not report witness002 //t:app[1]/t:rdg[5]
not report witness002 //t:app[1]/t:rdg[6]
not report witness002 //t:app[2]/t:lem[1]
not report witness002 //t:app[2]/t:rdg[1]
not report witness002 //t:app[2]/t:rdg[2]
report witness002 //t:app[2]/t:rdg[3]
FAILED
..report use of non-registered witnesses
not report witness001 //t:app[1]/t:lem[1]
not report witness001 //t:app[1]/t:rdg[1]
not report witness001 //t:app[1]/t:rdg[2]
not report witness001 //t:app[1]/t:rdg[3]
not report witness001 //t:app[1]/t:rdg[4]
not report witness001 //t:app[1]/t:rdg[5]
not report witness001 //t:app[1]/t:rdg[6]
not report witness001 //t:app[2]/t:lem[1]
not report witness001 //t:app[2]/t:rdg[1]
report witness001 //t:app[2]/t:rdg[2]
FAILED
report witness001 //t:app[2]/t:rdg[3]
FAILED
passed: 17 / pending: 0 / failed: 5 / total: 22
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
Hi,
the
expect-reportelement 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:
Test schematron validation of the consistency of witness attributes ..report parallel use not report witness002 //t:app[1]/t:lem[1] report witness002 //t:app[1]/t:rdg[1] FAILED not report witness002 //t:app[1]/t:rdg[2] report witness002 //t:app[1]/t:rdg[3] FAILED not report witness002 //t:app[1]/t:rdg[4] not report witness002 //t:app[1]/t:rdg[5] not report witness002 //t:app[1]/t:rdg[6] not report witness002 //t:app[2]/t:lem[1] not report witness002 //t:app[2]/t:rdg[1] not report witness002 //t:app[2]/t:rdg[2] report witness002 //t:app[2]/t:rdg[3] FAILED ..report use of non-registered witnesses not report witness001 //t:app[1]/t:lem[1] not report witness001 //t:app[1]/t:rdg[1] not report witness001 //t:app[1]/t:rdg[2] not report witness001 //t:app[1]/t:rdg[3] not report witness001 //t:app[1]/t:rdg[4] not report witness001 //t:app[1]/t:rdg[5] not report witness001 //t:app[1]/t:rdg[6] not report witness001 //t:app[2]/t:lem[1] not report witness001 //t:app[2]/t:rdg[1] report witness001 //t:app[2]/t:rdg[2] FAILED report witness001 //t:app[2]/t:rdg[3] FAILED passed: 17 / pending: 0 / failed: 5 / total: 22The difference comes exactly from the evaluation of
expect-reportelements.For reproduction, I attach the schematron file and the xspec file (with
txtfile suffix due to supported files).witness.sch
test_witness.xspec
Regards,
Chris