Added parameteres to xslt transformation, and used FileUtils methods.