Skip to content
Snippets Groups Projects
Commit 7fbf7acb authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- minor

parent 1aa1bc27
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ public class SLUBValidateRelaxNG {
}
}
public boolean validateAgainst(Document docvalidate, URI relaxNgUri) throws IOException, SAXException {
public boolean validateAgainst(Document doc, URI relaxNgUri) throws IOException, SAXException {
try {
/*
System.setProperty(SchemaFactory.class.getName() + ":" + XMLConstants.RELAXNG_NS_URI, "com.thaiopensource.relaxng.jaxp.XMLSyntaxSchemaFactory");
......@@ -76,7 +76,7 @@ public class SLUBValidateRelaxNG {
// System.out.println("XXX A");
driver.loadSchema(inRng);
// System.out.println("XXX B");
InputSource inXml = ValidationDriver.uriOrFileInputSource(docvalidate.getDocumentURI());
InputSource inXml = ValidationDriver.uriOrFileInputSource(doc.getDocumentURI());
// System.out.println("XXX C");
inXml.setEncoding("UTF-8");
// System.out.println("XXX D");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment