Transform() public abstract method

Transforms the specified inputXml into the specified outputWriter.
public abstract Transform ( XmlNode inputXml, TextWriter outputWriter, SageContext context, object>.Dictionary arguments = null ) : void
inputXml System.Xml.XmlNode The input XML to transform.
outputWriter System.IO.TextWriter The output writer to transform to.
context SageContext The current context.
arguments object>.Dictionary Optional transform arguments.
return void
Esempio n. 1
0
        /// <summary>
        /// Transforms the specified document.
        /// </summary>
        /// <param name="subject">The xml node to transform.</param>
        /// <param name="textWriter">The text writer to transform to.</param>
        /// <param name="stylesheet">The style sheet to use.</param>
        /// <param name="context">The context under which the code is executing.</param>
        public virtual void Transform(XmlNode subject, TextWriter textWriter, XsltTransform stylesheet, SageContext context)
        {
            Contract.Requires<ArgumentNullException>(subject != null);
            Contract.Requires<ArgumentNullException>(textWriter != null);
            Contract.Requires<ArgumentNullException>(stylesheet != null);
            Contract.Requires<ArgumentNullException>(context != null);

            stylesheet.Transform(subject, textWriter, context);
        }