return new RELAXNGLoader(parseable);
}
private static Parseable makeRELAXNGSource(Options opts, final InputSource in, ErrorHandler eh, File f) {
if(opts.compact.isOn())
return new CompactParseable(in,eh);
if(opts.xml.isOn())
return new SAXParseable(in,eh);
// otherwise sniff from the file extension
if(f.getPath().toLowerCase().endsWith("rnc"))
return new CompactParseable(in,eh);
else
return new SAXParseable(in,eh);
}