if (_funs == null)
_funs = (HashMap) ((StylesheetImpl) _stylesheet)._funs.clone();
else
_funs.putAll((HashMap) ((StylesheetImpl) _stylesheet)._funs);
addFunction("document", new DocumentFun(transformer));
DocumentFun docFun = new DocumentFun(transformer);
docFun.setHtml(true);
addFunction("html_document", docFun);
Env env = XPath.createEnv();
env.setFunctions(_funs);
StylesheetEnv ssEnv = new StylesheetEnv();