Warning, /multimedia/amarok/tests/htmlgenerator/AmarokTest.xsl is written in an unsupported language. File is not indexed.

0001 <!--
0002 ########################################################################################
0003 # Copyright (c) 2009 Mark Kretschmann <kretschmann@kde.org>                            #
0004 #                                                                                      #
0005 # This program is free software; you can redistribute it and/or modify it under        #
0006 # the terms of the GNU General Public License as published by the Free Software        #
0007 # Foundation; either version 2 of the License, or (at your option) any later           #
0008 # version.                                                                             #
0009 #                                                                                      #
0010 # This program is distributed in the hope that it will be useful, but WITHOUT ANY      #
0011 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      #
0012 # PARTICULAR PURPOSE. See the GNU General Public License for more details.             #
0013 #                                                                                      #
0014 # You should have received a copy of the GNU General Public License along with         #
0015 # this program.  If not, see <http://www.gnu.org/licenses/>.                           #
0016 ########################################################################################
0017 -->
0018 
0019 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
0020 <xsl:output method="html"/>
0021 
0022 
0023 <xsl:template match="TestCase">
0024     <html><body>
0025         <h1>
0026             Unit test results for: 
0027             <xsl:value-of select="@name"/>
0028             <xsl:apply-templates/>
0029         </h1>
0030     </body></html>
0031 </xsl:template>
0032 
0033 
0034 <xsl:template match="Environment">
0035     <p><h3>
0036         Qt Version: 
0037         <xsl:value-of select="QtVersion"/>
0038     </h3></p><br/>
0039 </xsl:template>
0040 
0041 
0042 <xsl:template match="TestFunction">
0043     <h2>
0044         Test Function Name:
0045         <em>
0046             <xsl:value-of select="@name"/>
0047         </em>
0048         <h3>
0049 
0050             <xsl:if test="Incident/@type='pass'">
0051                 Pass
0052             </xsl:if>
0053             <xsl:if test="Incident/@type='fail'">
0054                 <font color='red'>
0055                     FAIL at line: 
0056                     <xsl:value-of select="Incident/@line"/>
0057                     <br/><br/>
0058                     <xsl:value-of select="Incident/Description"/>
0059                     <h4><p><ul>
0060                         <xsl:for-each select="Message">
0061                             <li>
0062                                 File:
0063                                 <xsl:value-of select="@file"/>
0064                                 <br/>
0065                                 Line:
0066                                 <xsl:value-of select="@line"/>
0067                                 <br/><br/>
0068                             </li>
0069                         </xsl:for-each>
0070                     </ul></p></h4>
0071                 </font>
0072             </xsl:if>
0073         </h3>
0074     </h2>
0075 </xsl:template>
0076 
0077 
0078 </xsl:stylesheet>
0079 
0080