C# Class Q42.Mvc.XsltViewEngine.XsltView

Inheritance: IView, IViewDataContainer
ファイルを表示 Open project: Q42/XsltViewEngine

Public Methods

Method Description
Render ( System.Web.Mvc.ViewContext viewContext, TextWriter writer ) : void
XsltView ( ControllerContext controllerContext, string partialPath, PluginConstructor>.Dictionary pluginConstructors ) : System
XsltView ( ControllerContext controllerContext, string viewPath, string masterPath, PluginConstructor>.Dictionary pluginConstructors ) : System

Private Methods

Method Description
GetDirectories ( string path ) : IEnumerable
addObject ( string name, object obj ) : void

Adds an object as parameter to the xsl, so it can be obtained from within xsl by a global param definition with the same name. The object will be serialized automatically if needed to.

getMediaType ( ) : string

Retrieves the media type set by the xsl's output element. This is done by reflection due to its protection level.

getXsl ( string fileName ) : XslCompiledTransform

Returns an Xsl file

resolvePath ( string path ) : string

Resolves a virtual path to an absolute path

Method Details

Render() public method

public Render ( System.Web.Mvc.ViewContext viewContext, TextWriter writer ) : void
viewContext System.Web.Mvc.ViewContext
writer System.IO.TextWriter
return void

XsltView() public method

public XsltView ( ControllerContext controllerContext, string partialPath, PluginConstructor>.Dictionary pluginConstructors ) : System
controllerContext ControllerContext
partialPath string
pluginConstructors PluginConstructor>.Dictionary
return System

XsltView() public method

public XsltView ( ControllerContext controllerContext, string viewPath, string masterPath, PluginConstructor>.Dictionary pluginConstructors ) : System
controllerContext ControllerContext
viewPath string
masterPath string
pluginConstructors PluginConstructor>.Dictionary
return System