I have been using xjc to compile XML Schema into annotated java classes, so that I can generate xml files using jaxb.
How can I do the same for Schematron?
UPDATE: To be more specific: The java classes don't need to validate all the schematron rules, only the parts that pertain to schema, i.e. the parts of the Schematron that could have been expressed as XSD.
This is the specific schema I want to compile: https://github.com/OpenPEPPOL/peppol-bis-invoice-3/blob/master/rules/sch/PEPPOL-EN16931-UBL.sch
The purpose of this is to generate PEPPOL BIS Billing 3.0 invoices and credit notes. Other comments also welcome.