code: protected void appendAndPush(
            StylesheetHandler handler, ElemTemplateElement elem)
              throws org.xml.sax.SAXException
    {
  
      ElemTemplateElement parent = handler.getElemTemplateElement();
      if(null != parent)  // defensive, for better multiple error reporting. -sb
      {
        parent.appendChild(elem);
        handler.pushElemTemplateElement(elem);
      }
    }
docs: Append the current template element to the current
  template element, and then push it onto the current template
  element stack.
  
  @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  @param elem non-null reference to a the current template element.
  
  @throws org.xml.sax.SAXException Any SAX exception, possibly
  wrapping another exception.