code: public ElemTemplateElement appendChild(ElemTemplateElement newChild)
    {
  
      int type = ((ElemTemplateElement) newChild).getXSLToken();
  
      if (Constants.ELEMNAME_SORT == type)
      {
        setSortElem((ElemSort) newChild);
  
        return newChild;
      }
      else
        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 child list
  
  @return Child just added to child list