@ Nonnull public SchematronOutputType applySchematronValidationToSVRL ( @ Nonnull final Node aXMLNode , @ Nullable final String sBaseURI ) throws SchematronException { ValueEnforcer . notNull ( aXMLNode , "XMLNode" ) ; final SchematronOutputType aSOT = getOrCreateBoundSchema ( ) . validateComplete ( aXMLNode , sBaseURI ) ; // Debug print the created SVRL document if ( SchematronDebug . isShowCreatedSVRL ( ) ) LOGGER . info ( "Created SVRL:\n" + new SVRLMarshaller ( false ) . getAsString ( aSOT ) ) ; return aSOT ; }
The main method to convert a node to an SVRL document .