示例#1
0
 private SAXSource createValidatingSource(
     InputSource in, PropertyMap properties, CountingErrorHandler ceh) throws SAXException {
   Validator validator = schematronSchema.createValidator(properties);
   XMLReaderCreator xrc = ValidateProperty.XML_READER_CREATOR.get(properties);
   XMLReader xr = xrc.createXMLReader();
   xr.setErrorHandler(ceh);
   return new SAXSource(new ValidateStage(xr, validator, ceh), in);
 }
 /**
  * @return
  * @see com.thaiopensource.validate.Schema#getProperties()
  */
 @Override
 public PropertyMap getProperties() {
   return delegate.getProperties();
 }
 /**
  * @param properties
  * @return
  * @see com.thaiopensource.validate.Schema#createValidator(com.thaiopensource.util.PropertyMap)
  */
 @Override
 public Validator createValidator(PropertyMap properties) {
   return new XmlLangAttributeDroppingValidatorWrapper(
       delegate.createValidator(properties), properties);
 }