move handling of format where it actually belongs, really get all the parameters passed to the XSLT processor.