/** * Output a namespace node (binding) * @param namespaceCode encapsulates the prefix and URI * @param properties the properties of the namespace binding * @throws XPathException */ public void namespace(int namespaceCode, int properties) throws XPathException { // Keep the namespace only if it is actually needed if (isNeeded(namespaceCode)) { addToStack(namespaceCode); countStack[depth - 1]++; nextReceiver.namespace(namespaceCode, properties); } }
/** * Output a namespace node (binding) * @param namespaceCode encapsulates the prefix and URI * @param properties the properties of the namespace binding * @throws XPathException */ public void namespace(int namespaceCode, int properties) throws XPathException { // Keep the namespace only if it is actually needed if (isNeeded(namespaceCode)) { addToStack(namespaceCode); countStack[depth - 1]++; nextReceiver.namespace(namespaceCode, properties); } }
/** * Output a namespace node (binding) * * @param namespaceBindings the prefix/uri pair to be output * @param properties the properties of the namespace binding * @throws XPathException if any downstream error occurs */ public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { // Keep the namespace only if it is actually needed for (NamespaceBinding ns : namespaceBindings) { if (isNeeded(ns)) { addToStack(ns); countStack[depth - 1]++; nextReceiver.namespace(ns, properties); } } }
/** * Output a namespace node (binding) * * @param namespaceBindings the prefix/uri pair to be output * @param properties the properties of the namespace binding * @throws XPathException if any downstream error occurs */ public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { // Keep the namespace only if it is actually needed for (NamespaceBinding ns : namespaceBindings) { if (isNeeded(ns)) { addToStack(ns); countStack[depth - 1]++; nextReceiver.namespace(ns, properties); } } }