}
} if (name.length()!=0 && uri.trim().length()==0) { throw new XPathException("XQST0085 : cannot undeclare a prefix "+name+"."); }
	public void addNamespaceDecl(String name, String uri) throws XPathException {        QName qn = new QName(name, uri, "xmlns");        if (name.equalsIgnoreCase("xml")) {            throw new XPathException("XQST0070 : can not redefine '" + qn + "'");        }        if (name.equalsIgnoreCase("xmlns")) {            throw new XPathException("XQST0070 : can not redefine '" + qn + "'");        }                if(namespaceDecls == null) {            namespaceDecls = new QName[1];            namespaceDecls[0] = qn;        } else {            for(int i = 0; i < namespaceDecls.length; i++) {                if (qn.equals(namespaceDecls[i]))                    throw new XPathException("XQST0071 : duplicate definition for '" + qn + "'");            }            QName decls[] = new QName[namespaceDecls.length + 1];            System.arraycopy(namespaceDecls, 0, decls, 0, namespaceDecls.length);            decls[namespaceDecls.length] = qn;                      namespaceDecls = decls;        }        //context.inScopeNamespaces.put(qn.getLocalName(), qn.getNamespaceURI());	}