Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1 KB

README.md

File metadata and controls

40 lines (26 loc) · 1 KB

fedramp-automation Java usage example

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.

Prerequisites

Compiled Schematron XSLT artifacts are required to run this example. The following command will build the artifact:

cd ../../..
make build-validations

Usage

This example uses Maven. You may run directly, or via the provided docker-compose configuration.

mvn --help
docker-compose run example mvn --help

Developer notes

To run tests:

docker-compose run example mvn test

To auto-format code:

docker-compose run example mvn com.coveo:fmt-maven-plugin:format