When using javax.xml.transform.TransformerFactory to do a xslt transformation whitespaces get lost.
This is when the xslt contains <xsl:text> </xsl:text>, they should be preserved. The problem appears to be the resin.jar file, when removing the file javax.xml.parsers.SAXParserFactory file in resin.jar/META-INF/services, the whitespaces are preserved as the should. The version used is 3.1