Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
R# InspectCode XSLT
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:key name="ISSUETYPES" match="/Report/Issues/Project/Issue" use="@TypeId"/>
<xsl:output method="html" indent="yes"/>
<xsl:template match="/" name="TopLevelReport">
<title>Resharper InspectCode Report</title>
body { font-family: Arial; }
th, td { text-align: left; }
.severity { font-weight: bold; }
<h1>Resharper InspectCode Report</h1>
<xsl:for-each select="/Report/IssueTypes/IssueType">
<span class="severity"><xsl:value-of select="@Severity"/></span>: <xsl:value-of select="@Description"/>
<table style="width:100%">
<th>Line Number</th>
<xsl:for-each select="key('ISSUETYPES',@Id)">
<xsl:value-of select="@File"/>
<xsl:value-of select="@Line"/>
<xsl:value-of select="@Message"/>
<br />
<hr />
<br />

This comment has been minimized.

Copy link

mauriciogracia commented Feb 25, 2019

It works great thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.