/** * Create a new in-scope level for the Stack based on an Attribute. * * @param att The attribute to contribute to the namespace scope. */ public void push(Attribute att) { final List<Namespace> toadd = new ArrayList<Namespace>(1); final Namespace mns = att.getNamespace(); // check to see whether the Namespace is new-to-scope. Namespace[] newscope = checkNamespace(toadd, mns, scope[depth]); pushStack(mns, newscope, toadd); }
final Namespace mns = element.getNamespace(); Namespace[] newscope = checkNamespace(toadd, mns, scope[depth]); if (element.hasAdditionalNamespaces()) { for (final Namespace ns : element.getAdditionalNamespaces()) { newscope = checkNamespace(toadd, ns, newscope); newscope = checkNamespace(toadd, ns, newscope);