code: public ElemTemplateElement appendChild(ElemTemplateElement newChild)
    {
  
      int type = ((ElemTemplateElement) newChild).getXSLToken();
  
      if (Constants.ELEMNAME_WITHPARAM == type)
      {
        setParamElem((ElemWithParam) newChild);
      }
  
      // You still have to append, because this element can
      // contain a for-each, and other elements.
      return super.appendChild(newChild);
    }
docs: Add a child to the child list.
  <!ELEMENT xsl:apply-templates (xsl:sort|xsl:with-param)*>
  <!ATTLIST xsl:apply-templates
  select %expr; "node()"
  mode %qname; #IMPLIED
  >
  
  @param newChild Child to add to this node's children list
  
  @return The child that was just added the children list
  
  @throws DOMException