C# Class Sage.Views.XsltView

Implements an XSLT based IView.
Inheritance: IView
Afficher le fichier Open project: igorfrance/sage Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

Transform() public méthode

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.
Résultat void

Transform() public méthode

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.
Résultat void

Transform() public méthode

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.
Résultat void

XsltView() public méthode

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