ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java
@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;
  }
@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;
  }
@ 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.

@param aXMLNode
The source node to be validated. May not be <code>null</code>.
@param sBaseURI
Base URI of the XML document to be validated. May be
<code>null</code>.
@return The SVRL document. Never <code>null</code>.
@throws SchematronException
in case of a sever error validating the schema
The main method to convert a node to an SVRL document .