Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Static Code Analysis

, 15 Mar 2010 CPOL
A static code analyzer building method call networks + sample applications.
CodeAnalyzerAndToDoSample.zip
Generator
bin
.noclean
Arebis.CodeAnalysis.Static.dll
Arebis.CodeGeneration.dll
Arebis.CodeGeneration.VisualStudio.dll
Arebis.CodeGenerator.dll
Arebis.Common.dll
CGen.exe
Content.cst
Content.cst.gen
COperation.cst
COperation.cst.gen
files
GeneratorMain.cst
GeneratorMain.cst.gen
Index.cst
Index.cst.gen
IndexTop.cst
IndexTop.cst.gen
SOperation.cst
SOperation.cst.gen
UIOperation.cst
UIOperation.cst.gen
Output
SampleApp
LocalTestRun.testrunconfig
ToDoApplication
Infrastructure
Properties
Service References
ToDoContract
Properties
ToDoSample.vsmdi
ToDoService
Entities.edmx
Infrastructure
Properties
ToDoSample.Service.csproj.user
ToDoSampleDb.mdf
ToDoSampleDb_log.ldf
ToDoUnitTests
Properties
Testing
ToDoSample.UnitTests.csproj.user
UnitTests
StaticCodeAnalyzer
Arebis.CodeAnalysis.Static
Arebis.CodeAnalysis.Static.csproj.user
CodeModel.cd
Processors
Rules
Properties
Arebis.Common
Arebis
Collections
Generic
Reflection
Properties
System
Collections
Generic
Net2
Threading
Net2
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method="html" encoding="UTF-8" indent="no"/>

	<xsl:template match="member">
		<xsl:element name="member">
			<xsl:attribute name="name">
				<xsl:value-of select="@name"/>
			</xsl:attribute>
			<div>
				<xsl:apply-templates select="summary" />
			</div>
			<xsl:if test="count(param[string-length(text()) > 0]) > 0">
				<table border="0" cellspacing="0" cellpadding="0">
					<xsl:for-each select="param">
						<tr>
							<td valign="top" nowrap="true"><xsl:value-of select="@name"/></td>
							<td valign="top" nowrap="true">:&#xA0;&#xA0;</td>
							<td><xsl:apply-templates select="."/></td>
						</tr>
					</xsl:for-each>
				</table>
			</xsl:if>
		</xsl:element>
	</xsl:template>

	<xsl:template match="summary">
		<b>
			<xsl:apply-templates select="node()"/>
		</b>
	</xsl:template>

	<xsl:template match="see">
		"<xsl:value-of select="substring(@cref, 3)"/>"
	</xsl:template>

	<xsl:template match="c">
		<font color="blue">
			<xsl:value-of select="."/>
		</font>
	</xsl:template>

	<xsl:template match="returns">
		<div>
			Returns: <xsl:value-of select="."/>
		</div>
	</xsl:template>

	<xsl:template match="remarks">
		<div>
			<i>
				<xsl:value-of select="."/>
			</i>
		</div>
	</xsl:template>

	<!-- Copy nodes and attributes as is -->
	<xsl:template match="@*|*">
		<xsl:copy>
			<xsl:apply-templates select="@*|node()"/>
		</xsl:copy>
	</xsl:template>

</xsl:stylesheet>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Rudi Breedenraedt
Architect Wolters Kluwer Belgium
Belgium Belgium
Rudi is a Software Architect at Wolters Kluwer Belgium.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1411019.1 | Last Updated 15 Mar 2010
Article Copyright 2010 by Rudi Breedenraedt
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid