boolean (final PsiLanguageInjectionHost host) { if (host instanceof XmlAttributeValue) { final PsiElement p = host.getParent(); if (p instanceof XmlAttribute) { final String s = ((XmlAttribute)p).getName(); return !("xmlns".equals(s) || s.startsWith("xmlns:")); } } else if (host instanceof XmlText) { final XmlTag tag = ((XmlText)host).getParentTag(); return tag != null/* && tag.getValue().getTextElements().length == 1 && tag.getSubTags().length == 0*/; } return false; }