/** * startElement */ public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException { elementNameCode = nameCode; elementTypeCode = typeCode; elementLocationId = locationId; elementProperties = properties; bufferedAttributes.clear(); // Record the current height of the namespace list so it can be reset at endElement time countStack[depth] = 0; if (++depth >= countStack.length) { int[] newstack = new int[depth*2]; System.arraycopy(countStack, 0, newstack, 0, depth); countStack = newstack; } // Ensure that the element namespace is output, unless this is done // automatically by the caller (which is true, for example, for a literal // result element). acceptAttributes = true; inDocument = false; if ((properties & ReceiverOptions.NAMESPACE_OK) == 0) { namespace(getNamePool().allocateNamespaceCode(nameCode), 0); } attCount = 0; }
/** * startElement */ public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException { elementNameCode = nameCode; elementTypeCode = typeCode; elementLocationId = locationId; elementProperties = properties; bufferedAttributes.clear(); // Record the current height of the namespace list so it can be reset at endElement time countStack[depth] = 0; if (++depth >= countStack.length) { int[] newstack = new int[depth*2]; System.arraycopy(countStack, 0, newstack, 0, depth); countStack = newstack; } // Ensure that the element namespace is output, unless this is done // automatically by the caller (which is true, for example, for a literal // result element). acceptAttributes = true; inDocument = false; if ((properties & ReceiverOptions.NAMESPACE_OK) == 0) { namespace(getNamePool().allocateNamespaceCode(nameCode), 0); } attCount = 0; elementNode = null; }
/** * startElement */ public void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException { maybeStartContent(); elementNameCode = nameCode; elementTypeCode = typeCode; elementLocationId = location.saveLocation(); elementProperties = properties; bufferedAttributes.clear(); hasChildren = false; // Record the current height of the namespace list so it can be reset at endElement time countStack[depth] = 0; if (++depth >= countStack.length) { countStack = Arrays.copyOf(countStack, depth * 2); } // Ensure that the element namespace is output, unless this is done // automatically by the caller (which is true, for example, for a literal // result element). acceptAttributes = true; inDocument = false; if ((properties & ReceiverOptions.NAMESPACE_OK) == 0) { namespace(nameCode.getNamespaceBinding(), 0); } attCount = 0; inStartTag = true; }
/** * startElement */ public void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException { maybeStartContent(); elementNameCode = nameCode; elementTypeCode = typeCode; elementLocationId = location.saveLocation(); elementProperties = properties; bufferedAttributes.clear(); hasChildren = false; // Record the current height of the namespace list so it can be reset at endElement time countStack[depth] = 0; if (++depth >= countStack.length) { countStack = Arrays.copyOf(countStack, depth * 2); } // Ensure that the element namespace is output, unless this is done // automatically by the caller (which is true, for example, for a literal // result element). acceptAttributes = true; inDocument = false; if ((properties & ReceiverOptions.NAMESPACE_OK) == 0) { namespace(nameCode.getNamespaceBinding(), 0); } attCount = 0; inStartTag = true; }