PageRenderTime 7ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/asl/lib/checkstyle/xsl/checkstyle-text.xsl

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Extensible Stylesheet Language Transformations | 26 lines | 22 code | 4 blank | 0 comment | 0 complexity | c701fdc183c891a0948349bae5b98723 MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  1. <?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="text" omit-xml-declaration="yes"/>
  4. <xsl:template match="/">
  5. Coding Style Check Results
  6. --------------------------
  7. Total files checked: <xsl:number level="any" value="count(descendant::file)"/>
  8. Files with errors: <xsl:number level="any" value="count(descendant::file[error])"/>
  9. Total errors: <xsl:number level="any" value="count(descendant::error)"/>
  10. Errors per file: <xsl:number level="any" value="count(descendant::error) div count(descendant::file)"/>
  11. <xsl:apply-templates/>
  12. </xsl:template>
  13. <xsl:template match="file[error]">
  14. File: <xsl:value-of select="@name"/><xsl:text>
  15. </xsl:text>
  16. <xsl:apply-templates select="error"/>
  17. </xsl:template>
  18. <xsl:template match="error">
  19. <xsl:value-of select="@line"/>:<xsl:value-of select="@column"/><xsl:text> - </xsl:text><xsl:value-of select="@message"/><xsl:text>
  20. </xsl:text>
  21. </xsl:template>
  22. </xsl:stylesheet>