~checkbox-dev/checkbox/0.7

« back to all changes in this revision

Viewing changes to report/checkbox.xsl

  • Committer: Marc Tardif
  • Date: 2009-03-09 14:19:09 UTC
  • mfrom: (492.1.1 trunk)
  • Revision ID: marc.tardif@canonical.com-20090309141909-qvy04u5o7v6e2fhc
Merged changes from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
        <ul>
16
16
            <li><a href="#hal">HAL</a></li>
17
17
            <li><a href="#processors">Processors</a></li>
18
 
            <li><a href="#dmi">DMI</a></li>
19
 
            <li><a href="#lspci">PCI</a></li>
20
18
        </ul></li>
21
19
        <li>Software
22
20
        <ul>
24
22
            <li><a href="#lsb_release">LSB</a></li>
25
23
        </ul></li>
26
24
        <li><a href="#questions">Questions</a></li>
 
25
        <li><a href="#context">Contextual Information</a></li>
 
26
        <xsl:apply-templates select=".//context" mode="navigation" />
27
27
     </ol>
28
28
    <xsl:apply-templates select=".//summary" />
29
29
    <xsl:apply-templates select=".//hardware/hal" />
30
30
    <xsl:apply-templates select=".//hardware/processors" />
31
 
    <xsl:apply-templates select=".//hardware/dmi" />
32
31
    <xsl:apply-templates select=".//hardware/lspci" />
33
32
    <xsl:apply-templates select=".//software/packages" />
34
33
    <xsl:apply-templates select=".//software/lsb_release" />
35
34
    <xsl:apply-templates select=".//questions" />
 
35
    <xsl:apply-templates select=".//context" />
36
36
    </body>
37
37
    </html>
38
38
</xsl:template>
83
83
    <p class="navigation"><a href="#toc">Back to Table of Contents</a></p>
84
84
</xsl:template>
85
85
 
86
 
<xsl:template match="hardware/dmi">
87
 
    <h2 id="dmi">DMI</h2>
88
 
    <pre><xsl:value-of select="." /></pre>
89
 
    <p class="navigation"><a href="#toc">Back to Table of Contents</a></p>
90
 
</xsl:template>
91
 
 
92
 
<xsl:template match="hardware/lspci">
93
 
    <h2 id="lspci">PCI</h2>
94
 
    <pre><xsl:value-of select="." /></pre>
95
 
    <p class="navigation"><a href="#toc">Back to Table of Contents</a></p>
96
 
</xsl:template>
97
 
 
98
86
<xsl:template match="software/packages">
99
87
    <h2 id="packages">Packages</h2>
100
88
    <table>
144
132
    <p class="navigation"><a href="#toc">Back to Table of Contents</a></p>
145
133
</xsl:template>
146
134
 
 
135
<xsl:template match="context" mode="navigation">
 
136
    <ul>
 
137
    <xsl:for-each select="info">
 
138
        <li>
 
139
            <a href="#{generate-id(.)}"><xsl:value-of select="@command" /></a>
 
140
        </li>
 
141
    </xsl:for-each>
 
142
    </ul>
 
143
</xsl:template>
 
144
 
 
145
<xsl:template match="context">
 
146
    <h2 id="context">Contextual Information</h2>
 
147
    <xsl:for-each select="info">
 
148
        <h3 id="{generate-id(.)}"><xsl:value-of select="@command" /></h3>
 
149
        <pre><xsl:value-of select="." /></pre>
 
150
        <p class="navigation"><a href="#toc">Back to Table of Contents</a></p>
 
151
    </xsl:for-each>
 
152
</xsl:template>
 
153
 
147
154
</xsl:stylesheet>