diff --git a/WHATSNEW b/WHATSNEW index e2b026d34..699410db1 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -53,6 +53,9 @@ Fixed bugs: * Synchonization issues in PropertyHelper. Bugzilla 41353. * did not append. Bugzilla 41399. + +* xsl stylesheets allow setting the title used in and <h1> tags by + using <report><param> element. Bugzilla 41742. Other changes: -------------- diff --git a/docs/manual/OptionalTasks/junitreport.html b/docs/manual/OptionalTasks/junitreport.html index 33110b58f..fa86d7d01 100644 --- a/docs/manual/OptionalTasks/junitreport.html +++ b/docs/manual/OptionalTasks/junitreport.html @@ -151,8 +151,24 @@ These tags can pass XSL parameters to the stylesheet. <td valign="top">The param will only passed unless this property is set.</td> <td align="center" valign="top">No</td> </tr> +</table> +<p>The built-in stylesheets support the following parameters:</p> +<table width="60%" border="1" cellpadding="2" cellspacing="0"> + <tr> + <td valign="top"><b>XSL-Parameter</b></td> + <td valign="top"><b>Description</b></td> + <td align="center" valign="top"><b>Required</b></td> + </tr> + <tr> + <td valign="top">TITLE</td> + <td valign="top">Title used in <title> and <h1> tags</td> + <td align="center" valign="top">No. Defaults to <i>Unit Test Results.</i></td> + </tr> </table> + + + <h3>Example of report</h3> <blockquote> <pre><junitreport todir="./reports"> diff --git a/src/etc/junit-frames.xsl b/src/etc/junit-frames.xsl index 94e4272d9..a6d5292fb 100644 --- a/src/etc/junit-frames.xsl +++ b/src/etc/junit-frames.xsl @@ -31,6 +31,7 @@ --> <xsl:param name="output.dir" select="'.'"/> +<xsl:param name="TITLE">Unit Test Results.</xsl:param> <xsl:template match="testsuites"> @@ -144,7 +145,7 @@ <xsl:template name="index.html"> <html> <head> - <title>Unit Test Results. + <xsl:value-of select="$TITLE"/> @@ -688,7 +689,7 @@ h6 { -

Unit Test Results

+

diff --git a/src/etc/junit-noframes.xsl b/src/etc/junit-noframes.xsl index 5e67587dd..06a680638 100644 --- a/src/etc/junit-noframes.xsl +++ b/src/etc/junit-noframes.xsl @@ -21,6 +21,8 @@ limitations under the License. --> +Unit Test Results. + -

Unit Test Results

+