Sage.Views.XsltTransform.Create C# (CSharp) Method

Create() public static method

Creates a new XsltTransform, using the specified context and stylesheetMarkup.
public static Create ( SageContext context, XmlDocument stylesheetMarkup ) : XsltTransform
context SageContext The context under which this code is executing.
stylesheetMarkup System.Xml.XmlDocument The XSLT markup for the transform to create.
return XsltTransform
        public static XsltTransform Create(SageContext context, XmlDocument stylesheetMarkup)
        {
            Contract.Requires<ArgumentNullException>(context != null);
            Contract.Requires<ArgumentNullException>(stylesheetMarkup != null);

            XsltTransform result = new MsXsltTransform(context, stylesheetMarkup);
            foreach (string key in extensions.Keys)
            {
                result.Arguments.AddExtensionObject(key, extensions[key]);
            }

            return result;
        }

Same methods

XsltTransform::Create ( SageContext context, string stylesheetPath ) : XsltTransform