@Override public void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException { contentStarted = false; super.startElement(nameCode, typeCode, location, properties); }
@Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { written = true; super.startElement(elemName, typeCode, location, properties); }
@Override public void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException { contentStarted = false; super.startElement(nameCode, typeCode, location, properties); }
@Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { written = true; super.startElement(elemName, typeCode, location, properties); }
/** * Notify the start of an element * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location location of the origin of the event * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { if (level > 0) { super.startElement(elemName, typeCode, location, properties); } else { // The Linked Tree builder rejects two calls on startContent(), so we must suppress the next one suppressStartContent = true; } level++; }
public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException { contentStarted = false; super.startElement(nameCode, typeCode, locationId, properties); }
@Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { super.startElement(elemName, typeCode, fixedLocation, properties); }
public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException { contentStarted = false; super.startElement(nameCode, typeCode, locationId, properties); }
/** * Notify the start of an element * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { if (level > 0) { super.startElement(elemName, typeCode, location, properties); } else { // The Linked Tree builder rejects two calls on startContent(), so we must suppress the next one suppressStartContent = true; } level++; }
@Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { start(); level++; super.startElement(elemName, typeCode, location, properties); }
@Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { start(); level++; super.startElement(elemName, typeCode, location, properties); }
/** * Notify the start of an element * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location location of the element * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { checksum ^= hash(elemName, sequence++); if (DEBUG) { System.err.println("After startElement " + elemName.getDisplayName() + ": " + checksum); } checksumCorrect = false; super.startElement(elemName, typeCode, location, properties); }
/** * Notify the start of an element * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location location of the element * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { checksum ^= hash(elemName, sequence++); if (DEBUG) { System.err.println("After startElement " + elemName.getDisplayName() + ": " + checksum); } checksumCorrect = false; super.startElement(elemName, typeCode, location, properties); }
/** * Notify the start of an element * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { try { maybeStartContent(); level++; super.startElement(elemName, typeCode, location, properties); inStartTag = true; previousAtomic = false; } catch (XPathException e) { failed = true; throw e; } }
/** * Notify the start of an element * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { try { maybeStartContent(); level++; super.startElement(elemName, typeCode, location, properties); inStartTag = true; previousAtomic = false; } catch (XPathException e) { failed = true; throw e; } }
/** * Notify the start of an element * * Specific treatment of elements in XHTML, SVG and MathML namespaces forces a namespace to be emitted too, * rather than by higher level default behaviour. * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { if (isSpecial(elemName.getURI())) { if (!elemName.getPrefix().isEmpty()) { elemName = new FingerprintedQName("", elemName.getURI(), elemName.getLocalPart()); } super.startElement(elemName, typeCode, location, properties); super.namespace(new NamespaceBinding("", elemName.getURI()), properties); } else { super.startElement(elemName, typeCode, location, properties); } }
/** * Notify the start of an element * * Specific treatment of elements in XHTML, SVG and MathML namespaces forces a namespace to be emitted too, * rather than by higher level default behaviour. * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { if (isSpecial(elemName.getURI())) { if (!elemName.getPrefix().isEmpty()) { elemName = new FingerprintedQName("", elemName.getURI(), elemName.getLocalPart()); } super.startElement(elemName, typeCode, location, properties); super.namespace(new NamespaceBinding("", elemName.getURI()), properties); } else { super.startElement(elemName, typeCode, location, properties); } }
@Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { if (!started) { started = true; if (elemName.getURI().equals(testNamespace)) { alternativeReceiver.open(); alternativeReceiver.startDocument(0); try { getNextReceiver().close(); } catch (XPathException err) { // ignore the failure } setUnderlyingReceiver(alternativeReceiver); } } super.startElement(elemName, typeCode, location, properties); }
@Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { if (!started) { started = true; if (elemName.getURI().equals(testNamespace)) { alternativeReceiver.open(); alternativeReceiver.startDocument(0); try { getNextReceiver().close(); } catch (XPathException err) { // ignore the failure } setUnderlyingReceiver(alternativeReceiver); } } super.startElement(elemName, typeCode, location, properties); }
@Override public void startElement(NodeName elemName, SchemaType typeCode, int locationId, int properties) throws XPathException { MatchContext mc = matchContext.getLast(); MatchContext newContext = new MatchContext(); if (mc.elementArcs != null) { for (PathMapArc arc : mc.elementArcs) { NodeTest test = arc.getNodeTest(); if (test == null || test.matches(Type.ELEMENT, elemName, typeCode.getFingerprint())) { newContext.bulidContext(arc.getTarget()); newContext.matchedElement = true; } if (arc.getAxis() == AxisInfo.DESCENDANT || arc.getAxis() == AxisInfo.DESCENDANT_OR_SELF) { newContext.processArc(arc); } } } matchContext.add(newContext); if (newContext.matchedElement) { super.startElement(elemName, typeCode, locationId, properties); } else if (logTrace) { LogManager.logTrace(LogConstants.CTX_RUNTIME, "Document projection did not match element", elemName.getURI(), ':', elemName.getLocalPart()); //$NON-NLS-1$ } }