There is now a call_output_function() which automatically decides which function (of any three supplied ones) should be called.
Currently this does nothing but will later enable us to output xml and html alongside the current support for text output.