annotate make/conf/checkstyle-emacs.xsl @ 3489:f035d3881296

Added tag jdk-9+108 for changeset fd18a155ad22
author lana
date Thu, 03 Mar 2016 12:26:01 -0800
parents
children
rev   line source
ksrini@1136 1 <?xml version="1.0"?>
ksrini@1136 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
ksrini@1136 3 <xsl:output method="text" omit-xml-declaration="yes"/>
ksrini@1136 4
ksrini@1136 5 <xsl:template match="/">
ksrini@1136 6 Coding Style Check Results
ksrini@1136 7 --------------------------
ksrini@1136 8 Total files checked: <xsl:number level="any" value="count(descendant::file)"/>
ksrini@1136 9 Files with errors: <xsl:number level="any" value="count(descendant::file[error])"/>
ksrini@1136 10 Total errors: <xsl:number level="any" value="count(descendant::error)"/>
ksrini@1136 11 Errors per file: <xsl:number level="any" value="count(descendant::error) div count(descendant::file)"/>
ksrini@1136 12 <xsl:apply-templates/>
ksrini@1136 13 </xsl:template>
ksrini@1136 14
ksrini@1136 15 <xsl:template match="file[error]">
ksrini@1136 16 <xsl:apply-templates select="error"/>
ksrini@1136 17 </xsl:template>
ksrini@1136 18
ksrini@1136 19 <xsl:template match="error">
ksrini@1136 20 <xsl:value-of select="../@name"/>:<xsl:value-of select="@line"/><xsl:text>: </xsl:text><xsl:value-of select="@message"/><xsl:text>
ksrini@1136 21 </xsl:text>
ksrini@1136 22 </xsl:template>
ksrini@1136 23
ksrini@1136 24 </xsl:stylesheet>