;
}
}
is = conn.getInputStream();
} catch (IOException e) {
throw new DynamicError("Openning a document failed: " + unescaped, e);
}
final boolean resolveEntity = unescaped.startsWith("http");
final DocumentTableModel dtm = new DocumentTableModel(parseAsHtml, resolveEntity);
try {
dtm.loadDocument(is, dynEnv);
} catch (XQueryException e) {
throw new DynamicError("loading a document failed: " + unescaped, e);
}
xqdoc = dtm.documentNode();
xqdoc.setDocumentUri(unescaped);
_sharedCache.put(docurl, xqdoc);
}