This is a tool worth looking at. As we move from a client-side
application to providing reporting, a web application is probably in
order. This is a full XQuery stack implementation that is interesting:
http://www.28msec.com/sausalito/sausalito_xquery_technical_reading
I'm not advocating we use it, but I would recommend learning about it.
-Jonathan