}
public Sequence<? extends Item> eval(Sequence<? extends Item> contextSeq, DynamicContext dynEnv)
throws XQueryException {
Sequence contents = expr.eval(contextSeq, dynEnv);
DMDocument doc = XQueryDataModel.createDocument(dynEnv.getStaticContext().getBaseURIString(), contents);
return doc;
}