From: Wolfgang M. M. <wol...@us...> - 2005-08-31 18:00:33
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21290/src/org/exist/util Modified Files: XMLReaderObjectFactory.java Log Message: Accept both, "yes" and "true" as arguments to <indexer validation=""> to enable validation. Index: XMLReaderObjectFactory.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/util/XMLReaderObjectFactory.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** XMLReaderObjectFactory.java 26 Oct 2004 20:56:19 -0000 1.3 --- XMLReaderObjectFactory.java 31 Aug 2005 18:00:25 -0000 1.4 *************** *** 63,67 **** String option = (String) config.getProperty("indexer.validation"); if (option != null) { ! if (option.equals("true")) validation = VALIDATION_ENABLED; else if (option.equals("auto")) --- 63,67 ---- String option = (String) config.getProperty("indexer.validation"); if (option != null) { ! if (option.equals("true") || option.equals("yes")) validation = VALIDATION_ENABLED; else if (option.equals("auto")) *************** *** 85,88 **** --- 85,89 ---- validation == VALIDATION_AUTO || validation == VALIDATION_ENABLED); + System.out.println("Validation turned on"); } catch (SAXNotRecognizedException e1) { // ignore: feature only recognized by xerces |