Thanks, but I can't really do that. The XSL needs to be available because the page must be easily configurable by the users. It doesn't sound like there is a nice answer to this so I'm going to change the App so it writes the XML out to a temp file and them does a simple file copy to the final location. This may limit the exposure to a half complete file.