Class SchematronXSLTValidator
- java.lang.Object
-
- com.fourjs.report.facturx.validation.SchematronXSLTValidator
-
public class SchematronXSLTValidator extends Object
Validates an XML document against an XSLT stylesheet compiled from a Schematron schema.
- Author:
- Alex Geller
-
-
Constructor Summary
Constructors Constructor Description SchematronXSLTValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
static String[]
validate(File xsltFile, InputStream is)
returns an empty list if the document is validstatic String[]
validate(File xsltFile, StreamSource streamSource)
returns an empty list if the document is validstatic String[]
validate(InputStream is)
returns an empty list if the document is validstatic String[]
validate(String xmlPath)
returns an empty list if the document is valid
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
validate
public static String[] validate(String xmlPath) throws IOException
returns an empty list if the document is valid- Throws:
IOException
-
validate
public static String[] validate(InputStream is) throws IOException
returns an empty list if the document is valid- Throws:
IOException
-
validate
public static String[] validate(File xsltFile, InputStream is) throws IOException
returns an empty list if the document is valid- Throws:
IOException
-
validate
public static String[] validate(File xsltFile, StreamSource streamSource) throws IOException
returns an empty list if the document is valid- Throws:
IOException
-
-