I am using XML to store a small contact list and trying to write a XSL template that will transform it into a CSV file. The problem I am having is with whitespace in the out
By default, XSLT templates have set, which will keep whitespace in your output. You can add to tell it to where to delete whitespace.
You may also need to include a normalize-space directive, like so:
Here is an example for preserve/strip space from W3 Schools.