encoding = parameters.getParameter("encoding", null);
preserveSpace = parameters.getParameterAsBoolean("preserve-space",false);
validTagnameChars = parameters.getParameter("valid-tagname-chars",null);
inputSource = resolver.resolveURI(src);
final SimpleSlopParser ssp = new SimpleSlopParser();
parser = ssp;
ssp.setPreserveWhitespace(preserveSpace);
ssp.setValidTagnameChars(validTagnameChars);
} catch (SourceException se) {
throw new ProcessingException("Error during resolving of '" + src + "'.", se);
}
}