Created: 2012-09-14 17:41
Updated: 2018-12-02 23:03
License: apache-2.0


Note: Development of myxsl has ceased in favor of XCST

myxsl (formerly helps you integrate XPath-based languages such as XSLT, XQuery, Schematron with your .NET code.

myxsl supports XslCompiledTransform and Saxon-HE. A provider design enables for other processors to plug-in.

This project is still on alpha stage. Some features are more stable than others. So far, the only released feature is the view engines for ASP.NET MVC.

NuGet NuGet

Web pages

myxsl provides dynamic compilation using build providers. After adding some configuration in Web.config you can add .xsl and .xqy pages to your web site.


myxsl provides compile-time notification of static errors in Visual Studio. Just click 'Build Website' (Ctrl+Shift+B) and watch the 'Error List' pane.


Similar to .aspx pages, you can use directives, in the form of processing instructions with pseudo attributes, to configure various aspects of your web page, e.g.:

<?xml version="1.0" encoding="utf-8"?>
<?page validate-request="false" enable-session-state="false" ?>
<?output-cache duration="60" vary-by-param="none" ?>

<xsl:stylesheet version="1.0" xmlns:xsl="">


myxsl integrates with ASP.NET MVC by implementing view engines for XSLT and XQuery. The ViewData dictionary items are passed as XSLT global parameters and XQuery external variables, and the model object is converted to XML and used as initial context node.

Function library

myxsl includes a function library for Request/Response/Session etc., as well as extensions specific to XslCompiledTransform and Saxon-HE. Also, some EXPath modules are implemented. Please run the samples project for more information.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more