public IContent WritePage(ISource source, IPageData pageData, OutputData outputData) { TkDebug.AssertArgumentNull(outputData, "outputData", this); PageMakerUtil.AssertType(source, outputData, SourceOutputType.ToolkitObject); ExceptionData data = outputData.Data.Convert <ExceptionData>(); XDocument doc = data.CreateXDocument(null, ObjectUtil.WriteSettings, QName.ToolkitNoNS); string xsltFile = FileUtil.GetRealFileName(@"xslttemplate/bin/Exception.xslt", FilePathPosition.Xml); string content = XmlTransformUtil.Transform(doc.CreateReader(), xsltFile, null, TransformSetting.All); return(new SimpleContent(ContentTypeConst.HTML, content)); }