You retyped the Schematron into PHP. How do you know you got it right?
php
dev.to
Last time I wrote about a let variable thirty lines above an assertion that quietly inverted a rule, and made my validator report a bug on every credit note. A few people replied with versions of the same question, and it is the right one: if you cannot run the official file, and you retyped it into PHP by hand, what tells you the two still agree? Nothing did. That is what this post is about. The answer turned out to be more useful than the Croatian rules it was built for, so the tool is writt