HomeArticlesLinksArtworkAlexSamCharmSoftware Dev.About

 

 


 
XSLT Style Checker

The XSLT Style checker analyzes an XSLT file for stylistic correctness. I developed the following rules which work to make readable, reusable XSLT code. This style checker is written as an XSL transform that outputs the results as text. The following rules are checked:

  1. Any element has a maximum of 25 descendants, not counting <xsl:param> or <xsl:with-param> elements.
  2. The select attribute for <xsl:with-param> should be a maximum of 25 charaters.
  3. <xsl:with-param> should be a leaf element (it should have no children).

If you have any other suggestions of XSLT Style rules to add to this checker, send me feedback.

Michael S. Scherotter
April 2, 2004

Select an XSLT file to Analyze:

Results:

XSLT:

 

 4/3/2004