The example xmls provided are giving errors in schematron validation #75
-
I have taken the examples and schematrons from the 0.7.0 release of eForms-SDK. I use the ph-schematron - Java library to validate XML documents according to Schematron (ph-schematron-pure) When using the schematrons (
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Thanks for your feedback. There are 2 different issues at play for the various failed asserts you see. 1/ role="WARN" 2/ Incorrect rules We didn't notice those rules were incorrect, as those errors do not appear in the corresponding validation reports in the SDK. That's because ph-schematron-pure has a different behavior than the Schematron implementation we are using to generated those reports: the incorrect rule happens to not be execute by our implementation, due to the behavior described here: As we do want all rules to be executed, we will have to modify our Schematron so that they are indeed executed with all Schematron implementations. I've executed the example XML files with ph-schematron, and it seems that point 1/ and 2/ cover the failures in the examples you listed. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update. Can you please indicate in which release can we expect the schmatron files to be updated? |
Beta Was this translation helpful? Give feedback.
-
My project is also using ph-schematron lib. I can confirm that SDK 1.0.0 also has invalid xml examples that should be valid. I filtered out the WARN assertions, these are the results (ran with static and dynamic schema's): file: change-cn_24_suppliers.xml
file: can_24_maximal.xml
file: cn_24_nego_accel.xml
file: t02_ESP.xml
file: cn_24_maximal.xml
file: cn_24_open_accel.xml
file: cn_24_maximal_100_lots.xml
|
Beta Was this translation helpful? Give feedback.
Thanks for your feedback.
There are 2 different issues at play for the various failed asserts you see.
1/ role="WARN"
There are several examples that cause assert failures, but with
role="WARN"
.The rules that have
role="WARN"
do not make the notice invalid, they are here to point to a possible or potential issue.You can find those warnings in the validation reports corresponding to the examples, for instance, for cn_24_minimal.xml:
https://github.com/OP-TED/eForms-SDK/blob/develop/examples/reports/cn_24_minimal.svrl#L108
2/ Incorrect rules
The failure you indicate in
cn_24_maximal.xml
seems to be caused by a set of incorrect rules for field BT-1351-Procedure, that affect several other n…