Skip to main content

Posts

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 documentation. download 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. Stylesheet: <? xml version = " 1.0 " encoding = " iso-8859-1 " ?> < xsl:stylesheet version = " 1.0 " xmlns:xsl = " http://www.w3.org/1999/XSL/Transform " > < xsl:template match = " / " > < xsl:for-each select = " Paths/Item " > < xsl:call-template name = " SplitText " > < xsl:with-param name = " inputString " select = " Path " /> < xsl:with-param name = " delimiter " select = " Delimiter " /> </ xsl:call-template > < br /> </ xsl:for-each > </ xsl:template > < xsl:template name = " SplitText " > < xsl:param name = " inputString " /> < xsl:param name = " deli

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.