checkstyle-style.xsl.svn-base
来自「cqME :java framework for TCK test.」· SVN-BASE 代码 · 共 170 行
SVN-BASE
170 行
<?xml version="1.0" encoding="UTF-8"?><!-- $Id$ Copyright 1996-2007 Sun Microsystems, Inc. All Rights Reserved. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 only, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details (a copy is included at /legal/license.txt). You should have received a copy of the GNU General Public License version 2 along with this work; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 or visit www.sun.com if you need additional information or have any questions.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" indent="yes"/> <xsl:decimal-format decimal-separator="." grouping-separator="," /> <xsl:template match="checkstyle"> <html> <head> <title>Code Style Analysis for J2ME TCK Framework</title> <style type="text/css"> body { font:normal 68% verdana,arial,helvetica; color:#000000; } table tr td, tr th { font-size: 68%; } .a td { background:#eeeee0; } .b td { background: #efefef; } th, td { text-align: left; vertical-align: top; background:#a6caf0; } th { font-weight:bold; color: black; } table, th, td { border: none } h1 { margin: 0px 0px 5px; font: 165% verdana,arial,helvetica; text-align: center; } h2 { margin-bottom: 5; font: bold 125% verdana,arial,helvetica } h3 { margin-bottom: 0; font-size: 100%; font-weight; bold; background: #525D96; color: white; padding: 5px; margin-right: 2px; margin-left: 2px; margin-bottom: 0; } </style> </head> <body> <h1> <a name="top">Java Coding Style Analysis for J2ME TCK Framework</a> </h1> <p align="center">Generated by <a href='http://checkstyle.sourceforge.net/'>CheckStyle</a></p> <!-- Summary part --> <xsl:apply-templates select="." mode="summary"/> <!-- Package List part --> <xsl:apply-templates select="." mode="filelist"/> <!-- For each package create its part --> <xsl:for-each select="file"> <xsl:sort select="@name"/> <xsl:apply-templates select="."/> <p/> <p/> </xsl:for-each> </body> </html> </xsl:template> <xsl:template match="checkstyle" mode="filelist"> <h3>Files</h3> <table border="0" cellpadding="5" cellspacing="2" width="100%"> <tr> <th>Name</th> <th>Errors</th> </tr> <xsl:for-each select="file"> <xsl:sort data-type="number" order="descending" select="count(error)"/> <xsl:variable name="errorCount" select="count(error)"/> <tr> <xsl:call-template name="alternated-row"/> <td><a href="#f-{@name}"><xsl:value-of select="@name"/></a></td> <td><xsl:value-of select="$errorCount"/></td> </tr> </xsl:for-each> </table> </xsl:template> <xsl:template match="file"> <a name="f-{@name}"></a> <h3>File <xsl:value-of select="@name"/></h3> <table border="0" cellpadding="5" cellspacing="2" width="100%"> <tr> <th>Error Description</th> <th>Line</th> </tr> <xsl:for-each select="error"> <tr> <xsl:call-template name="alternated-row"/> <td><xsl:value-of select="@message"/></td> <td><xsl:value-of select="@line"/></td> </tr> </xsl:for-each> </table> <a href="#top">Back to top</a> </xsl:template> <xsl:template match="checkstyle" mode="summary"> <h3>Summary</h3> <xsl:variable name="fileCount" select="count(file)"/> <xsl:variable name="errorCount" select="count(file/error)"/> <table border="0" cellpadding="5" cellspacing="2" width="100%"> <tr> <th>Files</th> <th>Errors</th> </tr> <tr> <xsl:call-template name="alternated-row"/> <td><xsl:value-of select="$fileCount"/></td> <td><xsl:value-of select="$errorCount"/></td> </tr> </table> </xsl:template> <xsl:template name="alternated-row"> <xsl:attribute name="class"> <xsl:if test="position() mod 2 = 1">a</xsl:if> <xsl:if test="position() mod 2 = 0">b</xsl:if> </xsl:attribute> </xsl:template> </xsl:stylesheet>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?