String (XmlElement context) { if (context != null) { if (XsltSupport.getXsltLanguageLevel(context.getContainingFile()) == XsltChecker.LanguageLevel.V2) { context = PsiTreeUtil.getParentOfType(context, XmlTag.class, false); if (context != null) { do { final XmlTag tag = (XmlTag)context; String uri; if ((uri = tag.getAttributeValue("xpath-default-namespace", null)) != null || (uri = tag.getAttributeValue("xpath-default-namespace", XsltSupport.XSLT_NS)) != null) { return !uri.isEmpty() ? uri : null; } context = PsiTreeUtil.getParentOfType(context, XmlTag.class, true); } while (context != null); } } } return null; }