return s;
}
}
switch (construct) {
case Location.LITERAL_RESULT_ELEMENT: {
StructuredQName qName = info.getObjectName(pool);
String name = "element constructor";
if (context != null) {
name += " <" + qName.getDisplayName() + '>';
}
return name;
}
case Location.LITERAL_RESULT_ATTRIBUTE: {
StructuredQName qName = info.getObjectName(pool);
String name = "attribute constructor";
if (context != null) {
name += ' ' + qName.getDisplayName() + "=\"{...}\"";
}
return name;
}
case StandardNames.XSL_FUNCTION: {
StructuredQName qName = info.getObjectName(pool);
String name = "function";
if (context != null) {
name += ' ' + qName.getDisplayName() + "()";
}
return name;
}
case StandardNames.XSL_TEMPLATE: {
StructuredQName qName = info.getObjectName(pool);
String name = "template";
if (context != null && qName != null) {
name += " name=\"" + qName.getDisplayName() + '\"';
}
return name;
}
default:
return "";