throws XQueryException {
boolean isLoopInvariant = true;
String name = constructor.getElemName();
if(name == null) {
XQExpression nameExpr = constructor.getNameExpr();
nameExpr.visit(this, ctxt);
isLoopInvariant &= nameExpr.isLoopInvariant();
}
for(AttributeConstructorBase att : constructor.getAttributes()) {
att.visit(this, ctxt);
isLoopInvariant &= att.isLoopInvariant();