This is a simple example of how to use the fedramp-automation validation rules with the Java Saxon-HE library.
The implementation applies the project's compiled XSLT (ssp.sch.xsl
, sap.sch.xsl
, sar.sch.xsl
, and poam.sch.xsl
), to the demo documents (eg, FedRAMP-SSP-OSCAL-Template.xml), and then extracts failed assertions from the resulting SVRL.
Compiled Schematron XSLT artifacts are required to run this example. The following command will build the artifact:
cd ../../..
make build-validations
This example uses Maven. You may run directly, or via the provided docker compose
configuration.
mvn --help
docker compose run example mvn --help
To run tests:
docker compose run example mvn test
To auto-format code:
docker compose run example mvn com.coveo:fmt-maven-plugin:format