public static boolean validate(InputSource in, URL schema)
throws IOException {
// explicit datatype factory is workaround for Jing bug wrt to OS X
PropertyMapBuilder properties = new PropertyMapBuilder();
RngProperty.DATATYPE_LIBRARY_FACTORY.put(properties,
new DatatypeLibraryFactoryImpl());
ValidationDriver driver = new ValidationDriver(
properties.toPropertyMap(),
CompactSchemaReader.getInstance());