Switch from XslTransform to XslCompiledTransform breaks API Data Page HTML output

You need to adjust the transformation to exclude the XML declaration from the output. For more info, see here. The topic discusses the same problem.