transformer.applyTemplateToNode(this, null, sourceNode);
ElemTemplate matchTemplate = transformer.getMatchedTemplate(); transformer.applyTemplateToNode(this, matchTemplate, sourceNode);
  public void execute(          TransformerImpl transformer)            throws TransformerException  {    if (transformer.currentTemplateRuleIsNull())    {      transformer.getMsgMgr().error(this,        XSLTErrorResources.ER_NO_APPLY_IMPORT_IN_FOR_EACH);  //"xsl:apply-imports not allowed in a xsl:for-each");    }    if (TransformerImpl.S_DEBUG)      transformer.getTraceManager().fireTraceEvent(this);    int sourceNode = transformer.getXPathContext().getCurrentNode();    if (DTM.NULL != sourceNode)    {      // This will have to change to current template, (which will have       // to be the top of a current template stack).      transformer.applyTemplateToNode(this, null, sourceNode);    }    else  // if(null == sourceNode)    {      transformer.getMsgMgr().error(this,        XSLTErrorResources.ER_NULL_SOURCENODE_APPLYIMPORTS);  //"sourceNode is null in xsl:apply-imports!");    }    if (TransformerImpl.S_DEBUG)      transformer.getTraceManager().fireTraceEndEvent(this);  }