phax / ph-schematron

Java Schematron library that supports XSLT and native application
Apache License 2.0
115 stars 36 forks source link

[schematron-pure] universalTests2.sch results in to many assertion messages #152

Closed Katzor closed 8 months ago

Katzor commented 1 year ago

ph-schematron-testfiles; external/test-sch/universalTests2.sch; external/test-xml/valid03.xml

In universalTests2.sch it says: "The result of running this should be four assertion messages: U7, U8, U9, and U10 only."

schematron-sch results in these four assertion messages.

schematron-pure results in 8 assertion messages:

U5: This assertion should never succeed because the rule should never fire. U6: This report should never succeed because the rule should never fire. U7: This assertion should always fail. U8: This report should always succeed. U9: This assertion should always fail. U10: This report should always succeed. U11: This assertion should never succeed because the rule should never fire. U12: This report should never succeeed because the rule should never fire.

pigelvy commented 1 year ago

This is probably a duplicate of #84

phax commented 1 year ago

Yes indeed it's a duplicate of this issue. The reason is the different resolution model in pure - it does NOT follow the "XSLT way" by visiting each element just once. Instead it behaves like each rule is independent from the pattern it is used in.

Maybe we should really define a separate query binding "java-pure" to solve all these incompatibilities...

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

phax commented 8 months ago

I am closing this as a duplicate of #84 - however they are still linked, so we're not losing anything