blob: 5923bd9bf1dad037360d87b8a564500c655c7b50 [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" />
david_williamsab04f962006-12-10 09:39:38 +000033 as the reference.
34 </p>
david_williams3926e9f2006-12-09 08:23:14 +000035 <h3>Bundles with versioning errors</h3>
david_williamsab04f962006-12-10 09:39:38 +000036 <dl>
37 <xsl:for-each select="versioningCompare">
38 <xsl:if
david_williamsc84ab8c2006-12-11 18:50:34 +000039 test="@kind = 'error' and @codePackageType ='bundle'">
david_williamsab04f962006-12-10 09:39:38 +000040 <dt style="font-weight: bold; color: crimson">
41 <xsl:value-of select="entry" />
42 </dt>
43 <dd style="font-family: monospace;">
44 <xsl:value-of select="current" />
45 (current)
46 </dd>
47 <dd style="font-family: monospace;">
48 <xsl:value-of select="reference" />
49 (reference)
50 </dd>
51 </xsl:if>
52 </xsl:for-each>
53 </dl>
54 <h3>Features with versioning errors</h3>
55 <dl>
56 <xsl:for-each select="versioningCompare">
57 <xsl:if
david_williamsc84ab8c2006-12-11 18:50:34 +000058 test="@kind = 'error' and @codePackageType ='feature'">
david_williamsab04f962006-12-10 09:39:38 +000059 <dt style="font-weight: bold; color: crimson">
60 <xsl:value-of select="entry" />
61 </dt>
62 <dd style="font-family: monospace;">
63 <xsl:value-of select="current" />
64 (current)
65 </dd>
66 <dd style="font-family: monospace;">
67 <xsl:value-of select="reference" />
68 (reference)
69 </dd>
70 </xsl:if>
71 </xsl:for-each>
72 </dl>
david_williams3926e9f2006-12-09 08:23:14 +000073 <h3>Bundles with qualifier-only increases</h3>
david_williamsab04f962006-12-10 09:39:38 +000074 <dl>
75 <xsl:for-each select="versioningCompare">
76 <xsl:if
david_williamsc84ab8c2006-12-11 18:50:34 +000077 test="@kind = 'increase' and @field='qualifier' and @codePackageType ='bundle'">
david_williamsab04f962006-12-10 09:39:38 +000078 <dt style="font-weight: bold; color: gold">
79 <xsl:value-of select="entry" />
80 </dt>
81 <dd style="font-family: monospace">
82 <xsl:value-of select="current" />
83 (current)
84 </dd>
85 <dd style="font-family: monospace">
86 <xsl:value-of select="reference" />
87 (reference)
88 </dd>
89 </xsl:if>
90 </xsl:for-each>
91 </dl>
92 <h3>Features with qualifier-only increases</h3>
93 <dl>
94 <xsl:for-each select="versioningCompare">
95 <xsl:if
david_williamsc84ab8c2006-12-11 18:50:34 +000096 test="@kind = 'increase' and @field='qualifier' and @codePackageType ='features'">
david_williamsab04f962006-12-10 09:39:38 +000097 <dt style="font-weight: bold; color: gold">
98 <xsl:value-of select="entry" />
99 </dt>
100 <dd style="font-family: monospace">
101 <xsl:value-of select="current" />
102 (current)
103 </dd>
104 <dd style="font-family: monospace">
105 <xsl:value-of select="reference" />
106 (reference)
107 </dd>
108 </xsl:if>
109 </xsl:for-each>
110 </dl>
111 <h3>New bundles or features not in reference</h3>
112 <ul>
113 <xsl:for-each select="versioningCompare">
114 <xsl:if test="@kind = 'extraInCurrent'">
115 <ul>
116 <xsl:value-of select="entry" />
117 </ul>
118 </xsl:if>
119 </xsl:for-each>
120 </ul>
121 <h3>Bundles or features with major, minor or service increase</h3>
122 <ul>
123 <xsl:for-each select="versioningCompare">
124 <xsl:if test="@kind = 'increase'">
125 <ul>
126 <xsl:value-of select="entry" />
127 </ul>
128 </xsl:if>
129 </xsl:for-each>
130 </ul>
131 <h3>Bundles or features with no change</h3>
132 <ul>
133 <xsl:for-each select="versioningCompare">
134 <xsl:if test="@kind = 'noChange'">
135 <ul>
136 <xsl:value-of select="entry" />
137 </ul>
138 </xsl:if>
139 </xsl:for-each>
140 </ul>
david_williams3926e9f2006-12-09 08:23:14 +0000141 </xsl:template>
142
143
144</xsl:stylesheet>