I have a servlet filter in my application that intercepts all the incoming requests and tries to strip the whitespaces from the incoming XML and write the resulting \'clean\
Using the xslt from the original question, a should do the trick.