/** * Process the current node by expanding entities in its attributes, but blindly copying its * children (content). */ public final void expandCurrentAttrs() { ActiveNode node = input.getActive(); if (input.hasActiveAttributes()) { ActiveElement oe = node.asElement(); ActiveElement e = new TreeElement(oe, expandAttrs(oe.getAttrList())); output.startNode(e); if (input.hasChildren()) { copyChildren(); } output.endElement(e.isEmptyElement() || e.implicitEnd()); } else if (input.hasChildren() && !node.hasChildNodes()) { copyCurrentNode(node); } else { output.putNode(node); } }