use of org.oclc.purl.dsdl.svrl.SchematronOutputType in project ph-schematron by phax.
the class SVRLMarshallerTest method testCreate.
@Test
public void testCreate() throws Exception {
final ISchematronResource aSV = SchematronResourceSCH.fromClassPath(VALID_SCHEMATRON);
assertNotNull("Failed to parse Schematron", aSV);
final Document aDoc = aSV.applySchematronValidation(new ClassPathResource(VALID_XMLINSTANCE));
assertNotNull("Failed to parse demo XML", aDoc);
final SchematronOutputType aSO = new SVRLMarshaller().read(aDoc);
assertNotNull("Failed to parse Schematron output", aSO);
}
Aggregations