ref xsl transformations (try to fix huge memory usage #425)