File: Doxygen.xsl

package info (click to toggle)
dart 0.20061109-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 5,668 kB
  • ctags: 247
  • sloc: tcl: 5,652; perl: 256; python: 141; cpp: 79; makefile: 68; sh: 36
file content (89 lines) | stat: -rw-r--r-- 2,993 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="2.0"
    xmlns:lxslt="http://xml.apache.org/xslt">

  <!--
       Use DashboardStamp as a parameter, default to most recent
       The proper flags to Xalan are in the form -PARAM DashboardStamp "string('foo')"
       -->
  <xsl:param name="DashboardStamp" select="string('MostRecentResults-Nightly')"/>
  <xsl:variable name="DashboardDir" select="concat('../', $DashboardStamp)"/>
  <xsl:param name="TestDocDir">.</xsl:param>
  <xsl:include href="DashboardConfig.xsl"/>
  <xsl:output method="html"/>

  <xsl:template match="/">
    <xsl:call-template name="Summary"/>
    <xsl:call-template name="DashboardHeader">
      <xsl:with-param name="Title">Doxygen log</xsl:with-param>
      <xsl:with-param name="IconDir">../../Icons</xsl:with-param>
      <xsl:with-param name="DashboardDir" select="$DashboardDir"/>
    </xsl:call-template>

    <h2>Doxygen started on <xsl:value-of select="Doxygen/StartDateTime"/></h2>
    <h3>
      Found 
      <a href="#Error">
        <xsl:value-of select="count(Doxygen/Error)"/> Errors
      </a>
      and 
      <a href="#Warning">
        <xsl:value-of select="count(Doxygen/Warning)"/> Warnings
      </a>
    </h3>
    <br/>
    <hr/>
    <a name="Error">
      <h2>Errors</h2>
    </a>
    <xsl:for-each select="Doxygen/Error">
      <hr/>
      <h3>Error # <xsl:number level="single" count="Doxygen/Error" format="1"/>: Build Log line <xsl:value-of select="LogLine"/></h3>
      <br/>
      <xsl:call-template name="FormatContext"/>
    </xsl:for-each>
    
    <hr/>
    <a name="Warning">
      <h2>Warnings</h2>
    </a>
    <xsl:for-each select="Doxygen/Warning">
      <hr/>
      <h3>Warning # <xsl:number level="single" count="Doxygen/Warning" format="1"/>: Build Log line <xsl:value-of select="LogLine"/></h3>
      <br/>
      <xsl:call-template name="FormatContext"/>
    </xsl:for-each>
    <xsl:call-template name="DashboardFooter"/>

  </xsl:template>
	

  <xsl:template name="FormatContext">
    <xsl:choose>
      <xsl:when test="SourceFile != ''">
        File: 
        <b><xsl:value-of select="SourceFile"/></b>
        Line: 
        <b><xsl:value-of select="SourceLineNumber"/></b>
      </xsl:when>
    </xsl:choose>
    <pre>
      <xsl:value-of select="PreContext"/>
      <b><xsl:value-of select="Text"/></b>
      <xsl:value-of select="PostContext"/>
    </pre>
  </xsl:template>

  <xsl:template name="Summary">
    <xsl:variable name="uri" select="concat('file:///', $TestDocDir, '/DoxygenSummary.xml' )"/>
    <xsl:result-document href="{$uri}" >
      <Doxygen>
        <StartDateTime><xsl:value-of select="/Doxygen/StartDateTime"/></StartDateTime>
        <ErrorCount><xsl:value-of select="count(/Doxygen/Error)"/></ErrorCount>
        <WarningCount><xsl:value-of select="count(/Doxygen/Warning)"/></WarningCount>
      </Doxygen>
    </xsl:result-document>
  </xsl:template>

</xsl:stylesheet>