/** Expand a single entity. */ public void expandEntity(ActiveEntity n, Output dst) { NodeList value = n.getValueNodes(this); if (value == null) { dst.putNode(n); } else { Copy.copyNodes(value, dst); } }
/** Expand an entity reference. */ public void expandEntityRef(EntityReference n, Output dst) { String name = n.getNodeName(); NodeList value = Index.getIndexValue(this, name); if (value == null) { dst.putNode(n); } else { Copy.copyNodes(value, dst); } }
/** Copy nodes in a nodelist. */ public void copyNodes(NodeList nl) { Copy.copyNodes(nl, output); }