internal static CacheableXmlDocument CombineModuleXslt(SageContext context)
{
CacheableXmlDocument resultDoc = new CacheableXmlDocument();
resultDoc.LoadXml(DefaultXslt);
foreach (var moduleKey in context.ProjectConfiguration.Modules.Keys)
{
var config = context.ProjectConfiguration.Modules[moduleKey];
foreach (string path in config.Stylesheets)
{
string stylesheetPath = context.Path.GetModulePath(moduleKey, path);
ModuleConfiguration.CopyXslElements(context, stylesheetPath, resultDoc);
}
}
XsltTransform.OmitNamespacePrefixResults(resultDoc);
return resultDoc;
}