Have your code simply accept a pointer to a SAX handler and call its methods directly. (That's what the output stage of Xalan -- or of a parser -- does; we just have a lot of fancy code involved in deciding which methods to call with what values.)
______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"may'ron DaroQbe'chugh vaj bIrIQbej" ("Put down the squeezebox and nobody
gets hurt.")
