alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (checkstyle-emacs.xsl)

This example Java source code file (checkstyle-emacs.xsl) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

check, coding, errors, files, results, style, total

The checkstyle-emacs.xsl Java example source code

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes"/>

<xsl:template match="/">
Coding Style Check Results
--------------------------
Total files checked: <xsl:number level="any" value="count(descendant::file)"/>
  Files with errors: <xsl:number level="any" value="count(descendant::file[error])"/>
       Total errors: <xsl:number level="any" value="count(descendant::error)"/>
    Errors per file: <xsl:number level="any" value="count(descendant::error) div count(descendant::file)"/>
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="file[error]">
<xsl:apply-templates select="error"/>
</xsl:template>

<xsl:template match="error">
<xsl:value-of select="../@name"/>:: 
</xsl:text>
</xsl:template>

</xsl:stylesheet>

Other Java examples (source code examples)

Here is a short list of links related to this Java checkstyle-emacs.xsl source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.