this.inputmode = CommandLineOptions.INPUT_FO;
final String foValue = this.parsedCommandLine.getOptionValue("fo");
try {
this.foInput = URLFactory.createURL(foValue);
} catch (final MalformedURLException e) {
throw new ConfigurationException("Command-line error: Malformed URL for -fo: " + foValue, e);
}
this.sessionConfig.setBaseDocument(this.foInput);
} else {
this.inputmode = CommandLineOptions.INPUT_XSLT;
final String xmlValue = this.parsedCommandLine.getOptionValue("xml");
try {
this.xmlInput = URLFactory.createURL(xmlValue);
} catch (final MalformedURLException e) {
throw new ConfigurationException("Command-line error: Malformed URL for -xml: " + xmlValue, e);
}
this.sessionConfig.setBaseDocument(this.xmlInput);
final String xslValue = this.parsedCommandLine.getOptionValue("xsl");
try {
this.xsltInput = URLFactory.createURL(xslValue);
} catch (final MalformedURLException e) {
throw new ConfigurationException("Command-line error: Malformed URL for -xsl: " + xslValue, e);
}
}
}