logo       

Request for help in getting results of FindBugs stylesheets to validate: msg#00071

java.findbugs.general

Subject: Request for help in getting results of FindBugs stylesheets to validate

I'm now trying to validate the results of applying each of the FindBugs style sheets
and part of our nightly smoke test.

I've encountered a few problems. XML stylesheets isn't an area of expertise of mine,
so I'd appreciate any help.

For default.xsl:

We have:
<tr class="detailrow{position() mod 2}">
<td/>
<td>
<p id="{$warningId}" style="display: none;">
<a href="#{@type}">Bug type <xsl:value-of select="@type"/> (click for details)</a>
<xsl:for-each select="./*/Message">
<br/><xsl:value-of select="text()"/>
</xsl:for-each>
</p>
</td>
</tr>

The problem here is that when this is applied to

<Message>In method org.apache.bcel.generic.Type.&lt;static initializer&gt;()</Message>

it generates:

<br/>In method org.apache.bcel.generic.Type.<static initializer>()

which won't validate. This problem doesn't seem to come up for the other style sheets, although the way
in which they include the Message element in the resulting html looks identical.

Any ideas?

Second question:

default.xsl and fancy.xsl use

<xsl:output method="xml" ...

while plain.xsl and summary.xsl use

<xsl:output method="html" ...

Should they all be consistent?

Bill



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise