public boolean processStartElement(XdmNode node) throws SaxonApiException { if (!inGroup.peek()) { matcher.addStartElement(wrapperCode, Untyped.getInstance(), null); } if (groupAdjacent != null && nextMatches(node)) { inGroup.pop(); inGroup.push(true); } else { inGroup.pop(); inGroup.push(false); } matcher.addStartElement(node); matcher.addAttributes(node); inGroup.push(false); // processEndElement will pop it! Value doesn't matter! return true; }
public boolean processStartElement(XdmNode node) throws SaxonApiException { if (!inGroup.peek()) { matcher.addStartElement(wrapperCode, Untyped.getInstance(), null); } if (groupAdjacent != null && nextMatches(node)) { inGroup.pop(); inGroup.push(true); } else { inGroup.pop(); inGroup.push(false); } matcher.addStartElement(node); matcher.addAttributes(node); inGroup.push(false); // processEndElement will pop it! Value doesn't matter! return true; }
public void processComment(XdmNode node) throws SaxonApiException { if (!inGroup.peek()) { matcher.addStartElement(wrapperCode, Untyped.getInstance(), null); } matcher.addComment(node.getStringValue()); if (groupAdjacent != null && nextMatches(node)) { inGroup.pop(); inGroup.push(true); } else { matcher.addEndElement(); inGroup.pop(); inGroup.push(false); } }
public void processComment(XdmNode node) throws SaxonApiException { if (!inGroup.peek()) { matcher.addStartElement(wrapperCode, Untyped.getInstance(), null); } matcher.addComment(node.getStringValue()); if (groupAdjacent != null && nextMatches(node)) { inGroup.pop(); inGroup.push(true); } else { matcher.addEndElement(); inGroup.pop(); inGroup.push(false); } }
public void processText(XdmNode node) throws SaxonApiException { if (!inGroup.peek()) { matcher.addStartElement(wrapperCode, Untyped.getInstance(), null); } matcher.addText(node.getStringValue()); if (groupAdjacent != null && nextMatches(node)) { inGroup.pop(); inGroup.push(true); } else { matcher.addEndElement(); inGroup.pop(); inGroup.push(false); } }
public void processText(XdmNode node) throws SaxonApiException { if (!inGroup.peek()) { matcher.addStartElement(wrapperCode, Untyped.getInstance(), null); } matcher.addText(node.getStringValue()); if (groupAdjacent != null && nextMatches(node)) { inGroup.pop(); inGroup.push(true); } else { matcher.addEndElement(); inGroup.pop(); inGroup.push(false); } }
public void processPI(XdmNode node) throws SaxonApiException { if (!inGroup.peek()) { matcher.addStartElement(wrapperCode, Untyped.getInstance(), null); } matcher.addPI(node.getNodeName().getLocalName(),node.getStringValue()); if (groupAdjacent != null && nextMatches(node)) { inGroup.pop(); inGroup.push(true); } else { matcher.addEndElement(); inGroup.pop(); inGroup.push(false); } }
public void processPI(XdmNode node) throws SaxonApiException { if (!inGroup.peek()) { matcher.addStartElement(wrapperCode, Untyped.getInstance(), null); } matcher.addPI(node.getNodeName().getLocalName(),node.getStringValue()); if (groupAdjacent != null && nextMatches(node)) { inGroup.pop(); inGroup.push(true); } else { matcher.addEndElement(); inGroup.pop(); inGroup.push(false); } }