/** Adds the declared namespaces to the native info, if necessary. */ private static void addDeclaredNamespace(NativeInfo nativeInfo, Collection<Namespace> namespaces, LanguageDefinition langdef) { for (Namespace ns : namespaces) { final String uri = ns.getURI(); boolean bNatPrefix = uri.startsWith(LanguageDefinition.NATIVE_NAMESPACE_PREFIX); // ZK-2494: Should also consider adding declaredNamespace inside a native component if (bNatPrefix || (!isZKNamespace(uri) && !langdef.getNamespace().equals(uri))) nativeInfo.addDeclaredNamespace(new Namespace(ns.getPrefix(), bNatPrefix ? uri.substring(LanguageDefinition.NATIVE_NAMESPACE_PREFIX.length()) : uri)); } }
if (!isZkAttr(langdef, attrns) && !isZKNamespace(attURI) && !"xmlns".equals(attPref) && !("xmlns".equals(attnm) && "".equals(attPref)) && !"http://www.w3.org/2001/XMLSchema-instance".equals(attURI)) {