Skip to main content


Showing posts from May, 2008

C# Source Analysis tool

Microsoft has announced release of a new developer tool, Source Analysis for C#. This tool will help teams enforce a common set of best practices for layout, readability, maintainability, and documentation of C# source code. Source Analysis is similar in many ways to Microsoft Code Analysis tool FxCop, but there are some clear distinctions. FxCop performs its analysis on compiled binaries, while Source Analysis analyzes the source code directly. For this reason, Code Analysis focuses more on the design of the code, while Source Analysis focuses on layout, readability and tool

XSL template to split string

Finally came up with a xslt template that would split a delimited string into substrings. I don’t claim it’s the smartest script, but surely solves my problem.

<?xmlversion="1.0"encoding="iso-8859-1"?> <xsl:stylesheetversion="1.0"xmlns:xsl=""> <xsl:templatematch="/"> <xsl:for-eachselect="Paths/Item"> <xsl:call-templatename="SplitText"> <xsl:with-paramname="inputString"select="Path"/> <xsl:with-paramname="delimiter"select="Delimiter"/> </xsl:call-template> <br/> </xsl:for-each> </xsl:template> <xsl:templatename="SplitText"> <xsl:param

String Split Template

I want an XSL template which would split a given string. Spent a hell lot of time searching on net, but could not find one that would solve my problem.So I have decided I will write one myself.Hmm .. May be tomorrow.