jkesselm 01/10/31 11:57:39 Modified: java/src/org/apache/xalan/xslt Process.java Log: Add command-line switches for the options introduced at same time as DTM, to make testing those features easier. Revision Changes Path 1.42 +18 -1 xml-xalan/java/src/org/apache/xalan/xslt/Process.java Index: Process.java =================================================================== RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xslt/Process.java,v retrieving revision 1.41 retrieving revision 1.42 diff -u -r1.41 -r1.42 --- Process.java 2001/08/06 22:17:17 1.41 +++ Process.java 2001/10/31 19:57:38 1.42 @@ -375,7 +375,7 @@ XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-PARAM" })); //"Missing argument for); } - else if ("-treedump".equalsIgnoreCase(argv[i])) // sc 28-Feb-01 appears to be unused; can we remove? + else if ("-TREEDUMP".equalsIgnoreCase(argv[i])) // sc 28-Feb-01 appears to be unused; can we remove? { if (i + 1 < argv.length) treedumpFileName = argv[++i]; @@ -538,6 +538,23 @@ } else if ("-L".equalsIgnoreCase(argv[i])) useSourceLocation = true; + else if ("-INCREMENTAL".equalsIgnoreCase(argv[i])) + { + tfactory.setAttribute + ("http://xml.apache.org/xalan/features/incremental", + java.lang.Boolean.TRUE); + } + else if ("-NOOPTIMIZE".equalsIgnoreCase(argv[i])) + { + // Default is true. + // + // %REVIEW% We should have a generalized syntax for negative + // switches... and probably should accept the inverse even + // if it is the default. + tfactory.setAttribute + ("http://xml.apache.org/xalan/features/optimize", + java.lang.Boolean.FALSE); + } else System.err.println( XSLMessages.createMessage(
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]