![JAR search and dependency download from the Maven repository](/logo.png)
com.thaiopensource.validate.rng.CompactSchemaReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jing Show documentation
Show all versions of jing Show documentation
A branch of Jing used by the Nu Html Checker. (Jing is a tool for validating documents against RelaxNG schemas.)
The newest version!
package com.thaiopensource.validate.rng;
import com.thaiopensource.relaxng.impl.SchemaReaderImpl;
import com.thaiopensource.relaxng.parse.Parseable;
import com.thaiopensource.relaxng.parse.compact.CompactParseable;
import com.thaiopensource.relaxng.parse.compact.UriOpenerImpl;
import com.thaiopensource.validate.SchemaReader;
import com.thaiopensource.xml.sax.Resolver;
import org.xml.sax.ErrorHandler;
import javax.xml.transform.sax.SAXSource;
public class CompactSchemaReader extends SchemaReaderImpl {
private static final SchemaReader theInstance = new CompactSchemaReader();
private CompactSchemaReader() {
}
public static SchemaReader getInstance() {
return theInstance;
}
protected Parseable createParseable(SAXSource source, Resolver resolver, ErrorHandler eh) {
return new CompactParseable(source.getInputSource(), new UriOpenerImpl(resolver), eh);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy