/** * Remove the top frame from the stack. */ public void pop() { clearFrame(); top--; // If we've moved below the current default NS, figure out the new // default (if any) if (top < currentDefaultNS) { // Reset the currentDefaultNS to ignore the frame just removed. currentDefaultNS = top; while (currentDefaultNS > 0) { if (stack[currentDefaultNS] != null && stack[currentDefaultNS].getPrefix().length() == 0) { break; } currentDefaultNS--; } } if (top == 0) { if (traceEnabled) { LOG.trace("NSPop (empty)"); } return; } if (traceEnabled) { LOG.trace("NSPop (" + stack.length + ")"); } }