init template of SAX