286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 2003-2005 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A * This implementation of NamespaceContext has the ability to maintain multiple 286N/A * not always appropriate for elements to inherit the namespace bindings of their 286N/A * ancestors (such as included elements in XInclude). 286N/A * When searching for a URI to match a prefix, or a prefix to match a URI, it is 286N/A * searched for in the current context, then the ancestors of the current context, 286N/A * up to the beginning of the current scope. Other scopes are not searched. 286N/A * @author Peter McCracken, IBM 286N/A * @see com.sun.org.apache.xerces.internal.xni.NamespaceContext#getAllPrefixes() 286N/A * @see com.sun.org.apache.xerces.internal.xni.NamespaceContext#getPrefix(java.lang.String) 286N/A * @see com.sun.org.apache.xerces.internal.xni.NamespaceContext#getURI(java.lang.String) 286N/A // this saves us from having a copy of each of these in fNamespace for each scope 286N/A // find uri in current context 286N/A // this saves us from having a copy of each of these in fNamespace for each scope 286N/A // find prefix in current context 286N/A * Only resets the current scope -- all namespaces defined in lower scopes 286N/A * remain valid after a call to reset. 286N/A * Begins a new scope. None of the previous namespace bindings will be used, 286N/A * until the new scope is popped with popScope() 286N/A * Pops the current scope. The namespace bindings from the new current scope 286N/A * are then used for searching for namespaces and prefixes.