rootVarScope = new RootVariableScope();
currCtx = moduleCtx;
module.setModuleContext(moduleCtx);
module.setCompilerControlBlock(ccb);
VersionDeclNode ver = moduleNode.getVersion();
if (ver != null) {
if (!"1.0".equals(ver.getVersion())) {
throw new SystemException(ErrorCode.XQST0031, ver.getSourceLocation());
}
}
switch (moduleNode.getTag()) {
case LIBRARY_MODULE: {