xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject cvs commit: xml-xalan/test FailScanner.xsl ResultScanner.xsl
Date Fri, 01 Feb 2002 17:28:24 GMT
curcuru     02/02/01 09:28:24

  Modified:    test     FailScanner.xsl ResultScanner.xsl
  Log:
  Use redirect: extension to output a ResultsReportMini.html that
  just lists minimal list of fails, nothing else: this is easier to scan
  a full set of conf tests for known fails
  
  Revision  Changes    Path
  1.2       +26 -0     xml-xalan/test/FailScanner.xsl
  
  Index: FailScanner.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/FailScanner.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FailScanner.xsl	17 Jan 2002 20:36:23 -0000	1.1
  +++ FailScanner.xsl	1 Feb 2002 17:28:24 -0000	1.2
  @@ -1,9 +1,16 @@
   <?xml version="1.0"?> 
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  +    xmlns:lxslt="http://xml.apache.org/xslt"
  +    xmlns:redirect="org.apache.xalan.lib.Redirect"
  +    extension-element-prefixes="redirect"
       version="1.0">
   <xsl:output method="html"
             doctype-public="-//W3C//DTD HTML 4.0 Transitional"/>
   
  +<lxslt:component prefix="redirect" elements="write open close" functions="">
  +    <lxslt:script lang="javaclass" src="org.apache.xalan.lib.Redirect"/>
  +</lxslt:component>  
  +
   <!-- FileName: FailScanner.xsl -->
   <!-- Author: shane_curcuru@us.ibm.com -->
   <!-- Purpose: Simple viewer for org.apache.qetest.XMLFileLogger
  @@ -13,6 +20,9 @@
        attributes, and values, copied from relevant Java code -->
   <xsl:include href="resultsConstants.xsl"/>
   
  +<!-- Name of file for mini-fails redirected output -->
  +<xsl:param name="redirectFilename">FailScannerMini.html</xsl:param>
  +
   <!-- ================================== -->
   <!-- Main template-standalone: output an HTML page -->
   <xsl:template match="resultsfile">
  @@ -35,6 +45,13 @@
       <caption>
         <b><xsl:value-of select="@filename"/><xsl:text>: </xsl:text></b><xsl:value-of
select="@desc"/>
       </caption>
  +    <redirect:write select="$redirectFilename" append="true">
  +      <hr/>
  +      <h3><xsl:value-of select="@filename"/>
  +      <xsl:text>: </xsl:text><xsl:value-of select="@desc"/>
  +      <xsl:text> in </xsl:text><xsl:value-of select="../@logFile"/>
  +      </h3>
  +    </redirect:write>
       <!-- establish row widths here in our mini-summary -->
       <tr>
         <td width="7%"><xsl:text>Overall</xsl:text></td>
  @@ -95,6 +112,15 @@
         <xsl:value-of select="@desc"/>
       </td>
     </tr>
  +  <redirect:write select="$redirectFilename" append="true">
  +    <p>
  +      <b><xsl:value-of select="@result"/><xsl:text> </xsl:text></b>
  +      <xsl:if test="@id">
  +        <xsl:text>[</xsl:text><xsl:value-of select="@id"/><xsl:text>]
</xsl:text>
  +      </xsl:if>
  +      <xsl:value-of select="@desc"/>    
  +    </p>
  +  </redirect:write>
   </xsl:template>
   
   <!-- Other Results that are not passes just get printed out as-is -->
  
  
  
  1.4       +18 -2     xml-xalan/test/ResultScanner.xsl
  
  Index: ResultScanner.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/ResultScanner.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ResultScanner.xsl	30 Jan 2002 20:16:24 -0000	1.3
  +++ ResultScanner.xsl	1 Feb 2002 17:28:24 -0000	1.4
  @@ -1,9 +1,16 @@
   <?xml version="1.0"?> 
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  +    xmlns:lxslt="http://xml.apache.org/xslt"
  +    xmlns:redirect="org.apache.xalan.lib.Redirect"
  +    extension-element-prefixes="redirect"
       version="1.0">
     <xsl:output method="html"
                 doctype-public="-//W3C//DTD HTML 4.0 Transitional"/>
   
  +<lxslt:component prefix="redirect" elements="write open close" functions="">
  +    <lxslt:script lang="javaclass" src="org.apache.xalan.lib.Redirect"/>
  +</lxslt:component>  
  +
   <!-- FileName: ResultScanner.xsl -->
   <!-- Author: shane_curcuru@us.ibm.com -->
   <!-- Purpose: Meta-scanner for groups of results produced 
  @@ -12,6 +19,9 @@
   <!-- Basic scanning stylesheet for individual testfile results -->
   <xsl:include href="FailScanner.xsl"/>
   
  +<!-- Name of file for mini-fails redirected output -->
  +<xsl:param name="redirectFilename">ResultReportMini.html</xsl:param>
  +
   <!-- ================================== -->
   <!-- Constants from org.apache.qetest.ResultScanner -->
   <xsl:variable name="goodResult">ok</xsl:variable>
  @@ -36,7 +46,11 @@
             <xsl:call-template name="miniStatusTable" />
             <br/>
         </xsl:for-each>
  -      <xsl:apply-templates/>
  +
  +      <redirect:open select="$redirectFilename" />
  +        <xsl:apply-templates/>
  +      <redirect:close select="$redirectFilename" />
  +
       </body>
     </html>
   </xsl:template>
  @@ -116,7 +130,9 @@
     </font>
   
     <!-- Now scan the actual underlying result file for stuff -->
  -  <xsl:apply-templates select="$testresults/testfile"/>
  +  <xsl:apply-templates select="$testresults/testfile">
  +    <xsl:with-param name="redirectFilename" select="$redirectFilename" />
  +  </xsl:apply-templates>
   </xsl:template>
   
   <!-- Override default text node processing, so statistics, arbitrary messages, and other
stuff is skipped -->
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message