blob: 890cc93e78a862250f9544661d8f61b0debbc7b1 [file] [log] [blame]
david_williams3926e9f2006-12-09 08:23:14 +00001<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet
3 version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
6 <xsl:output
7 method="html"
8 indent="yes" />
9
10 <xsl:template match="/">
11 <html>
12 <body>
13 <xsl:apply-templates select="versioningReport" />
14 </body>
15 </html>
16 </xsl:template>
17
18 <xsl:template match="versioningReport">
19 <h2>Versioning Report</h2>
20 <xsl:apply-templates select="versioningReportData" />
21 </xsl:template>
22
23
24
25 <xsl:template
26 name="errors"
27 match="versioningReportData">
28 <p>
29 For
30 <xsl:value-of select="@current" />
31 using
32 <xsl:value-of select="@id" />
33 as the reference.</p>
34 <h3>Bundles with versioning errors</h3>
35 <dl>
36 <xsl:for-each select="versioningCompare">
37 <xsl:if test="@kind = 'error'">
38 <dt style="font-weight: bold; color: crimson">
39 <xsl:value-of select="entry" />
40 </dt>
41 <dd style="font-family: monospace;"><xsl:value-of select="current" /> (current)</dd>
42 <dd style="font-family: monospace;"><xsl:value-of select="reference" /> (reference)</dd>
43 </xsl:if>
44 </xsl:for-each>
45 </dl>
46 <h3>Bundles with qualifier-only increases</h3>
47 <dl>
48 <xsl:for-each select="versioningCompare">
49 <xsl:if test="@kind = 'increase' and @field='qualifier'">
50 <dt style="font-weight: bold; color: gold">
51 <xsl:value-of select="entry" />
52 </dt>
53 <dd style="font-family: monospace"><xsl:value-of select="current" /> (current)</dd>
54 <dd style="font-family: monospace"><xsl:value-of select="reference" /> (reference)</dd>
55 </xsl:if>
56 </xsl:for-each>
57 </dl>
58 </xsl:template>
59
60
61</xsl:stylesheet>