File:  [mozdev] / aboutconfig / www / mozilla-tinderbox-microsummary.xml
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Fri Oct 5 13:52:25 2007 UTC (11 years, 6 months ago) by gruber
Branches: MAIN
CVS tags: HEAD
New tinderbox layout

<?xml version="1.0" encoding="UTF-8"?>
<generator xmlns="http://www.mozilla.org/microsummaries/0.1" name="Mozilla Tinderbox Microsummary"  uri="urn:source:http://aboutconfig.mozdev.org/mozilla-tinderbox-microsummary.xml">
   <pages>
     <include>^http://tinderbox\.mozilla\.org/showbuilds\.cgi.*</include>
   </pages>
   <template>
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="text"/>
    <xsl:template match="/">
      <!-- get tree name -->
      <xsl:variable name="treeName" select="substring-after(substring-before(/html/body/table[1]/tbody/tr/td[1]/table/tbody/tr[2]/td/b,' ('),':')"/>
      <xsl:value-of select="$treeName"/> <xsl:text>: </xsl:text>

      <!-- get open/closed -->
      <xsl:value-of select="/html/body//a[@name='open']/following::font[1]"/> <xsl:text> (</xsl:text>
        <!-- get burning-ness -->
        <xsl:variable name="numBurning" select="count(//a[@title='burning'])"/>
        <xsl:variable name="numOrange" select="count(/html/body/table/tbody/tr[1]/td[@bgcolor='#ffaa00'])"/>
        <xsl:choose>
          <xsl:when test="$numBurning &gt; 0"><xsl:value-of select="$numBurning"/> burning (<xsl:for-each select="//a[@title='burning']"><xsl:value-of select="./font"/>, </xsl:for-each>)</xsl:when>
          <xsl:when test="$numOrange &gt; 0"><xsl:value-of select="$numOrange"/> orange (<xsl:for-each select="/html/body/table/tbody/tr[1]/td[@bgcolor='#ffaa00']"><xsl:value-of select="./font"/>, </xsl:for-each>)</xsl:when>
          <xsl:otherwise><xsl:text>OK</xsl:text></xsl:otherwise>
        </xsl:choose>
      <xsl:text>)</xsl:text>
    </xsl:template>
    </xsl:transform>
   </template>
 </generator>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>