try {
Reader reader = new FileReader(file);
NameChecker checker = pipe.getConfiguration().getNameChecker();
CharSequence content = UnparsedText.readFile(checker, reader);
String uri = file.toURI().toString();
TextFragmentValue doc = new TextFragmentValue(content, uri);
doc.setSystemId(file.toURI().toString());
doc.setConfiguration(pipe.getConfiguration());
return SingletonIterator.makeIterator(doc);
} catch (IOException err) {
if (onError == URIQueryParameters.ON_ERROR_IGNORE) {
return null;
} else if (onError == URIQueryParameters.ON_ERROR_WARNING) {