if ("attribute".equals(nm) && isZkElement(langdef, nm, pref, uri, bNativeContent)) {
if (!(parent instanceof ComponentInfo))
throw new UiException(message("<attribute> cannot be the root element", el));
parseAttribute(pgdef, (ComponentInfo) parent, el, annHelper);
} else if ("template".equals(nm) && isZkElement(langdef, nm, pref, uri, bNativeContent)) {
parseItems(pgdef, parseTemplate(parent, el, annHelper), el.getChildren(), annHelper, bNativeContent);
if ("attribute".equals(nm) || "template".equals(nm))
return null;
if ("zscript".equals(nm) && isZkElement(langdef, nm, pref, uri)) {
checkZScriptEnabled(el);
parseZScript(parent, el, annHelper);
} else if ("custom-attributes".equals(nm) && isZkElement(langdef, nm, pref, uri, bNativeContent)) {
parseCustomAttributes(langdef, parent, el, annHelper);
} else if ("variables".equals(nm) && isZkElement(langdef, nm, pref, uri, bNativeContent)) {
parseVariables(langdef, parent, el, annHelper);
} else if ("zk".equals(nm) && isZkElement(langdef, nm, pref, uri)) {
parseItems(pgdef, parseZk(parent, el, annHelper), el.getChildren(), annHelper, bNativeContent);
} else if (isShadowElement(langdef, pgdef, nm, pref, uri, bNativeContent)) {