if(name != null) {
buf.append('<' + name + '>');
} else {
header("ElementConstructor");
attrFeed("name");
final XQExpression nameExpr = constructor.getNameExpr();
indentln();
nameExpr.visit(this, ctxt);
indent--;
}
List atts = constructor.getAttributes();
final int attlen = atts.size();
if(attlen > 0) {
attrFeed("attributes");
indent++;
for(int i = 0; i < attlen; i++) {
XQExpression a = (XQExpression) atts.get(i);
lineFeed();
a.visit(this, ctxt);
}
indent--;
}
List values = constructor.getContents();
if(values.size() > 0) {
attrFeed("value");
indent++;
for(int i = 0; i < values.size(); i++) {
XQExpression v = (XQExpression) values.get(i);
if(!(v instanceof TextContent)) {
lineFeed();
}
v.visit(this, ctxt);
}
indent--;
}
if(name != null) {