Patch 1724028 - XSLs not counting errors correctly in filelist
This commit is contained in:
parent
7a6bf01c4d
commit
2da46d26c1
|
|
@ -334,6 +334,7 @@
|
|||
</checkstyle>
|
||||
<mkdir dir="${target.dir}/style/frames"/>
|
||||
<mkdir dir="${target.dir}/style/noframes"/>
|
||||
<mkdir dir="${target.dir}/style/noframes-sorted"/>
|
||||
<mkdir dir="${target.dir}/style/simple"/>
|
||||
<mkdir dir="${target.dir}/style/csv"/>
|
||||
<mkdir dir="target/style/author"/>
|
||||
|
|
@ -341,6 +342,10 @@
|
|||
destdir="${target.dir}/style/noframes"
|
||||
includes="cs_errors.xml"
|
||||
style="contrib/checkstyle-noframes.xsl"/>
|
||||
<style basedir="${target.dir}"
|
||||
destdir="${target.dir}/style/noframes-sorted"
|
||||
includes="cs_errors.xml"
|
||||
style="contrib/checkstyle-noframes-sorted.xsl"/>
|
||||
<style basedir="${target.dir}"
|
||||
destdir="${target.dir}/style/frames"
|
||||
includes="cs_errors.xml"
|
||||
|
|
|
|||
|
|
@ -117,8 +117,9 @@
|
|||
</tr>
|
||||
<xsl:for-each select="file[@name and generate-id(.) = generate-id(key('files', @name))]">
|
||||
<xsl:sort data-type="number" order="descending" select="count(key('files', @name)/error)"/>
|
||||
<xsl:variable name="errorCount" select="count(error)"/>
|
||||
<tr>
|
||||
<xsl:variable name="currentName" select="@name" />
|
||||
<xsl:variable name="errorCount" select="count(../file[@name=$currentName]/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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue