1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 4<xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"/> 5<xsl:param name="testfile" select="'No_file'"/> 6 7<xsl:variable name="Results" select="document($testfile)"/> 8<xsl:variable name="drive" select="document($testfile)/resultsfile/testfile/RunResults/@BaseDrive"/> 9 10<xsl:template match="/"> 11<html> 12 <head> 13 <base href="{$drive}:"/> 14 </head> 15 16 <xsl:apply-templates select="$Results/resultsfile/testfile/RunResults"/> 17 18 <!-- This table displays the list of tests that failed. --> 19 <TABLE frame="box" border="1" rules="groups" width="95%" cellspacing="2" cellpadding="5"> 20 <CAPTION align="center"><b><xsl:text>Failed Cases:</xsl:text></b></CAPTION> 21 <!-- fake row to establish widths --> 22 <TR><TD width="20%"></TD><TD width="80%"></TD></TR> 23 <xsl:apply-templates select="$Results/resultsfile/testfile/Test_Dir"/> 24 </TABLE> 25 26 <!-- This table displays the list of tests without gold files. --> 27 <TABLE frame="box" border="1" rules="groups" width="95%" cellspacing="2" cellpadding="5"> 28 <CAPTION align="center"><b>The following testcases were missing gold files:</b></CAPTION> 29 <!-- fake row to establish widths --> 30 <TR><TD width="20%"></TD><TD width="80%"></TD></TR> 31 <xsl:apply-templates select="$Results/resultsfile/testfile/Test_Dir" mode="ambg"/> 32 </TABLE> 33 34</html> 35</xsl:template> 36 37<xsl:template match="RunResults"> 38 <TABLE frame="box" border="1" rules="groups" width="95%" cellspacing="2" cellpadding="5"> 39 <CAPTION align="center" fontsize="15"><b>C++ Test Results</b></CAPTION> 40 <tr> 41 <!-- td rowspan="1" colspan="1"></td --> 42 <th align="center">RunID</th> 43 <th align="center">Xerces</th> 44 <th align="center">TestBase</th> 45 <th align="center">Source</th> 46 <th align="center">Pass</th> 47 <th align="center">Fail</th> 48 <th align="center">Missing Gold</th> 49 </tr> 50 <tr> 51 <td align="center"><b><xsl:value-of select="@UniqRunid"/></b></td> 52 <td align="center"><b><xsl:value-of select="@Xerces-Version"/></b></td> 53 <td align="center"><b><xsl:value-of select="@TestBase"/></b></td> 54 <td align="center"><b><xsl:value-of select="@xmlFormat"/></b></td> 55 <td align="center"><b><xsl:value-of select="@Passed"/></b></td> 56 <td align="center" bgcolor="red"><b><xsl:value-of select="@Failed"/></b></td> 57 <td align="center"><b><xsl:value-of select="@No_Gold_Files"/></b></td> 58 </tr> 59 </TABLE> 60</xsl:template> 61 62<xsl:template match="Test_Dir"> 63 <xsl:for-each select="Testcase"> 64 <xsl:if test="@result='FAIL'"> 65 <tr> 66 <td bgcolor="red"><xsl:value-of select="@desc"/></td> 67 <td><xsl:value-of select="@reason"/></td> 68 </tr> 69 <tr> 70 <td align="center">At Node:</td> 71 <td><xsl:value-of select="@atNode"/></td> 72 </tr> 73 <tr> 74 <td align="center">Expected:</td> 75 <td><xsl:value-of select="exp"/></td> 76 </tr> 77 <tr> 78 <td align="center">Actual:</td> 79 <td><xsl:value-of select="act"/></td> 80 </tr> 81 <tr> 82 <td align="center">links</td> 83 <td><a href="{xml}" target="new">xml, </a><a href="{xsl}" target="new">xsl, </a> 84 <a href="{result}" target="new">result, </a><a href="{gold}" target="new">gold</a></td> 85 </tr> 86 </xsl:if> 87 </xsl:for-each> 88</xsl:template> 89 90 91<xsl:template match="Test_Dir" mode="ambg"> 92 <xsl:for-each select="Testcase"> 93 <xsl:if test="@result='AMBG'"> 94 <tr> 95 <td><xsl:value-of select="@desc"/></td> 96 </tr> 97 </xsl:if> 98 </xsl:for-each> 99</xsl:template> 100 101 102 <!-- 103 * Licensed to the Apache Software Foundation (ASF) under one 104 * or more contributor license agreements. See the NOTICE file 105 * distributed with this work for additional information 106 * regarding copyright ownership. The ASF licenses this file 107 * to you under the Apache License, Version 2.0 (the "License"); 108 * you may not use this file except in compliance with the License. 109 * You may obtain a copy of the License at 110 * 111 * http://www.apache.org/licenses/LICENSE-2.0 112 * 113 * Unless required by applicable law or agreed to in writing, software 114 * distributed under the License is distributed on an "AS IS" BASIS, 115 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 116 * See the License for the specific language governing permissions and 117 * limitations under the License. 118 --> 119 120</xsl:stylesheet> 121