logo       

RE: Request for help in getting results of FindBugsstylesheets to validate: msg#00074

java.findbugs.general

Subject: RE: Request for help in getting results of FindBugsstylesheets to validate

This is a multi-part message in MIME format.
Bill,

I did fixed default.xsl. Please find it attached.

I've also added some further validation of messages:
Attached messages.xsl generates an html file containing all bug categories,
description...
I suggest to add to validate target the following:

<xslt destdir="."
in="${etc.dir}/messages.xml"
out="${sampleoutput.dir}/messages.html"
style="${xslsrc.dir}/messages.xsl"
/>
<xslt destdir="."
in="${etc.dir}/messages_fr.xml"
out="${sampleoutput.dir}/messages_fr.html"
style="${xslsrc.dir}/messages.xsl"
/>
<xslt destdir="."
in="${etc.dir}/messages_ja.xml"
out="${sampleoutput.dir}/messages_ja.html"
style="${xslsrc.dir}/messages.xsl"
/>
<xmlvalidate lenient="false" failonerror="yes">
<attribute
name="http://apache.org/xml/features/validation/schema"; value="true"/>
<attribute name="http://xml.org/sax/features/namespaces";
value="true"/>
<fileset dir="${sampleoutput.dir}" includes="messages*.html"/>
</xmlvalidate>


I did fixed all messages (en, fr and ja) that were not html valid. (see
attached messages.zip).


About your second question, the difference is that default.xsl and fancy.xsl
are generating xhtml when the two other are generating html 4.
They don't really need to be consitent unless you want to validate outputs
of plain.xsl and summary.xsl. In that case they need to generates xhtml
otherwise you will not be able to validate the outputs.

Etienne

> -----Original Message-----
> From: findbugs-discuss-bounces@xxxxxxxxxx
> [mailto:findbugs-discuss-bounces@xxxxxxxxxx] On Behalf Of Bill Pugh
> Sent: mercredi 27 décembre 2006 01:57
> To: Etienne Giraudy; findbugs-discuss@xxxxxxxxxx
> Subject: [FB-Discuss] Request for help in getting results of
> FindBugsstylesheets 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
>
> _______________________________________________
> Findbugs-discuss mailing list
> Findbugs-discuss@xxxxxxxxxxxxxxxxxx
> http://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>

Attachment: default.xsl
Description: Text Data

Attachment: messages.xsl
Description: Text Data

Attachment: messages.zip
Description: Zip compressed data



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

News | FAQ | advertise