Are there other (practical) ways to optionally output html or xml (including mime-types) besides completely rewriting acs-templating (or depending on xotcl-core)?
Briefly looking at the source code of these procs:
template::get_mime_type
template::register_mime_type
adp_parse_ad_conn_file
and these pages:
openacs-4/www/blank-master.adp
openacs-4/www/blank-master.tcl
It seems possible with a few line changes and having a blank-master for xml and another for html. If some procedure gets complicated dealing with xml versus html conditions, just create a proc for each of the 2 cases.
What part of the templating system would not work with separate xml and html blank-master templates (and modifications to above procs)?