handler.popElemTemplateElement();
handler.popElemTemplateElement().setEndLocaterInfo(handler.getLocator());
  public void endElement(          StylesheetHandler handler, String uri, String localName, String rawName)            throws org.xml.sax.SAXException  {    super.endElement(handler, uri, localName, rawName);    handler.popElemTemplateElement();  }