Fixed warnings and more:
Fixed warning given by XslTransform. Using new XslCompiledTransform.
Fixed stylesheet browsing dialog which was broken since 22nd May 2010.
Fixes a NullArgumentException but not the issue.
Need to dig deeper to understand why this code is messy.
Whitespace cleanup.
Modified this as per mhutch's request.
Merge pull request #279 from Therzok/moreWarnings

Fixed warnings and more: