if(ApplicationGlobal.CacheXslt)
{
xsl = (XslTransform)(HttpContext.Current.Cache[xslFile]);
}
if(xsl == null)
{
xsl = new XslTransform();
xsl.Load(StringUtil.ParseFileName(xslFile));
HttpContext.Current.Cache.Insert(xslFile, xsl,
new System.Web.Caching.CacheDependency(xslFile),
DateTime.MaxValue, TimeSpan.FromHours(2));
}
{
xsl = (XslTransform)(HttpContext.Current.Cache[xslFile]);
}
if(xsl == null)
{
xsl = new XslTransform();
xsl.Load(StringUtil.ParseFileName(xslFile));
HttpContext.Current.Cache.Insert(xslFile, xsl,
new System.Web.Caching.CacheDependency(xslFile),
DateTime.MaxValue, TimeSpan.FromHours(2));
}