Example #1
0
 /** 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);
   }
 }
Example #2
0
 /** 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);
   }
 }
Example #3
0
 /** Copy nodes in a nodelist. */
 public void copyNodes(NodeList nl) {
   Copy.copyNodes(nl, output);
 }