Closed robertmarkbram closed 2 years ago
Hi Rob, How does Schematron effectively work:
In your scenario the file /schematron/SSCCT/Validation/SSCCT Validation RulesAll.xsl
seems to be the result of step 1, but it doesn't seem to create SVRL as expected in step 2, but some other "report language".
Unfortunately that is not too uncommon (also done like this in OIOUBL), that's why there is the method ISchematronResource.applySchematronValidation
that returns the DOM Document only, and the caller is responsible for interpreting the result.
The SchematronHelper
methods are only there to convert a checked Exception into an unchecked Exception. They are legacy now, as the ISchematronResource
was pimped accordingly. I will deprecate these two methods for the next release.
Thanks - that's what I need. I will work with the document to get my output.
final Document document = schematronResource.applySchematronValidation(new StreamSource(new File(xbrlPath)));
Rob :)
I am applying a Schematron rule set to an XML document and having trouble figuring out how to deal with the SVRL. I have:
I see "Schematron file is valid." and then "Now applying it to xbrl ..." so I know it validated. But on the
applySchematron
I am getting:My questions:
SchematronHelper.applySchematron
vsschematronResource.applySchematronValidation
.Thanks,
Rob :)