code: public ElemTemplate getOwnerXSLTemplate()
    {
    	ElemTemplateElement el = this;
    	int type = el.getXSLToken();
    	while((null != el) && (type != Constants.ELEMNAME_TEMPLATE))
    	{
      	el = el.getParentElem();
      	if(null != el)
    			type = el.getXSLToken();
    	}
    	return (ElemTemplate)el;
    }
docs: Get the owning xsl:template element.
  
  @return The owning xsl:template element, this element if it is a xsl:template, or null if not found.