final String fmt = "Namespace '%s' is not open.";
final String msg = String.format(fmt, resourceLocation);
throw new IndexingFailure(resourceLocation, msg);
}
String encoding = il.lookup(p.getValue());
if (encoding == null) {
String rl = ns.getResourceLocation();
String pref = ns.getPrefix();
throw new NamespaceSyntaxWarning(rl, pref, p.getValue());