if (split.length == 1 && split[0].isEmpty()) {
result = XmlAttributeDescriptor.EMPTY;
} else {
result = new XmlAttributeDescriptor[split.length];
for (int i = 0; i < split.length; i++) {
result[i] = new AnyXmlAttributeDescriptor(DirectiveUtil.getAttributeName(split[i]));
}
}
final XmlAttributeDescriptor[] commonAttributes = RelaxedHtmlFromSchemaElementDescriptor.getCommonAttributeDescriptors(context);
return RelaxedHtmlFromSchemaElementDescriptor.addAttrDescriptorsForFacelets(context, ArrayUtil.mergeArrays(result, commonAttributes));