public static void main(String args[]) {
	// Select Saxon XPath implementation (necessary in case there
	// are other XPath libraries in classpath).
	System.setProperty("javax.xml.xpath.XPathFactory", "net.sf.saxon.xpath.XPathFactoryImpl");

	Configuration config = new Configuration();

	// Configuration parameters can be given with 'key=value'
	// strings. Parse them first.
	for (String arg : args) {
	    if (arg.contains("=")) {
		String[] tmp=arg.split("=");
		if (tmp.length == 1) {
		    config.setParam(tmp[0], "");
		} else if (tmp.length >= 2) {
		    config.setParam(tmp[0], tmp[1]);
		}
	    }
	}

	// Read the configuration file (which is either config.xml, or
	// was set above via the 'config' parameter on the command
	// line).
	try {
	    config.readConfigurationFile();
	} catch (UnknownParameterException e) {
	    logger.error("Error in configuration file", e);
	    System.exit(1);
	}
	process(config);
    }