Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An XSLT view engine for asp.net mvc
C#
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
LICENSE.txt
README.md

README.md

XsltViewEngine

An XSLT view engine for asp.net mvc that comes with a plugin architecture.

Add to global.asax

ViewEngines.Engines.Clear();
var xlsEngine = new XsltViewEngine();
xlsEngine.AddExtension("urn:myplugin", (v, c) => new Plugin());
ViewEngines.Engines.Add(xlsEngine);

Use plugins

<xsl:stylesheet version="1.0"
            xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
            xmlns:Html="urn:HtmlHelper"
            xmlns:ext="http://exslt.org/common"
            xmlns:myplugin="urn:myplugin">
 .... SNAP

 <xsl:value-of select="myplugin:MyMethod(.)"/><br/>

LICENSE

MIT see LICENSE.txt

Something went wrong with that request. Please try again.