added additional stream function to base stream-wrapper
added htmlentites to all xsl templates