C# Class Sage.Views.XsltView

Implements an XSLT based IView.
Inheritance: IView
Mostra file Open project: igorfrance/sage Class Usage Examples

Public Methods

Method Description
Render ( System.Web.Mvc.ViewContext viewContext, TextWriter textWriter ) : void

Renders the current view to the specified target TextWriter.

Transform ( System.Web.Mvc.ViewContext viewContext, TextWriter textWriter ) : void

Transforms the specified view context.

Transform ( System.Web.Mvc.ViewContext viewContext, TextWriter textWriter, XsltTransform stylesheet ) : void

Transforms the specified view context.

Transform ( XmlNode subject, TextWriter textWriter, XsltTransform stylesheet, SageContext context ) : void

Transforms the specified document.

XsltView ( ViewInfo viewInfo ) : System

Initializes a new instance of the XsltView class.

Method Details

Render() public method

Renders the current view to the specified target TextWriter.
public Render ( System.Web.Mvc.ViewContext viewContext, TextWriter textWriter ) : void
viewContext System.Web.Mvc.ViewContext The object that contains information required for rendering the /// current view.
textWriter System.IO.TextWriter The destination that receives the rendered result.
return void

Transform() public method

Transforms the specified view context.
public Transform ( System.Web.Mvc.ViewContext viewContext, TextWriter textWriter ) : void
viewContext System.Web.Mvc.ViewContext The view context.
textWriter System.IO.TextWriter The text writer.
return void

Transform() public method

Transforms the specified view context.
public Transform ( System.Web.Mvc.ViewContext viewContext, TextWriter textWriter, XsltTransform stylesheet ) : void
viewContext System.Web.Mvc.ViewContext The view context.
textWriter System.IO.TextWriter The text writer.
stylesheet XsltTransform The template.
return void

Transform() public method

Transforms the specified document.
public Transform ( XmlNode subject, TextWriter textWriter, XsltTransform stylesheet, SageContext context ) : void
subject System.Xml.XmlNode The xml node to transform.
textWriter System.IO.TextWriter The text writer to transform to.
stylesheet XsltTransform The style sheet to use.
context SageContext The context under which the code is executing.
return void

XsltView() public method

Initializes a new instance of the XsltView class.
public XsltView ( ViewInfo viewInfo ) : System
viewInfo ViewInfo Object that provides context information required for this view.
return System