public void startElement(StylesheetHandler handler,String uri,String localName,String rawName,Attributes attributes) throws SAXException {
  String msg="";
  if (!(handler.getElemTemplateElement() instanceof Stylesheet)) {
    msg="func:function element must be top level.";
    handler.error(msg,new SAXException(msg));
  }
  super.startElement(handler,uri,localName,rawName,attributes);
  String val=attributes.getValue("name");
  int indexOfColon=val.indexOf(":");
  if (indexOfColon > 0) {
  }
 else {
    msg="func:function name must have namespace";
    handler.error(msg,new SAXException(msg));
  }
}

public void startElement ( StylesheetHandler handler , String uri , String localName , String rawName , Attributes attributes ) throws SAXException { String msg = "" ; if ( ! ( handler . getElemTemplateElement ( ) instanceof Stylesheet ) ) { msg = "func:function element must be top level." ; handler . error ( msg , new SAXException ( msg ) ) ; } super . startElement ( handler , uri , localName , rawName , attributes ) ; String val = attributes . getValue ( "name" ) ; int indexOfColon = val . indexOf ( ":" ) ; if ( indexOfColon > 0 ) { } else { msg = "func:function name must have namespace" ; handler . error ( msg , new SAXException ( msg ) ) ; } }
start an elemexsltfunction . verify that it is top level and that it has a name attribute with a namespace .
