david_williams | 55e1697 | 2008-08-08 04:25:53 +0000 | [diff] [blame] | 1 | <?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 | <xsl:output |
| 6 | method="html" |
| 7 | indent="yes"/> |
| 8 | <xsl:template |
| 9 | match="/"> |
| 10 | <html> |
| 11 | <body> |
| 12 | <xsl:apply-templates |
| 13 | select="versioningReport"/> |
| 14 | </body> |
| 15 | </html> |
| 16 | </xsl:template> |
| 17 | <xsl:template |
| 18 | match="versioningReport"> |
| 19 | <h2>Versioning Report</h2> |
| 20 | <xsl:apply-templates |
| 21 | select="versioningReportData"/> |
| 22 | </xsl:template> |
| 23 | <xsl:template |
| 24 | name="errors" |
| 25 | match="versioningReportData"> |
| 26 | <p> |
| 27 | For |
| 28 | <xsl:value-of |
| 29 | select="@current"/> |
| 30 | using |
| 31 | <xsl:value-of |
| 32 | select="@id"/> |
| 33 | as the reference. |
| 34 | </p> |
| 35 | <p>Remember this listing is subject to inaccuracies |
| 36 | based on bugs in the scripts that generate it, or, more |
| 37 | likely in the exact way or time the reference data was |
| 38 | obtained. In other words, the code is correct and self |
| 39 | documenting, and this report is intended to provide a quick |
| 40 | sneek peek only.</p> |
| 41 | <p>Errors (decreases in version numbers)</p> |
| 42 | <ul> |
| 43 | <li> |
| 44 | <a |
| 45 | href="#bundleerrors">Bundles with versioning errors</a> |
| 46 | </li> |
| 47 | <li> |
| 48 | <a |
| 49 | href="#featureerrors">Features with versioning errors</a> |
| 50 | </li> |
| 51 | </ul> |
| 52 | <p>Bundles</p> |
| 53 | <ul> |
| 54 | <li> |
| 55 | <a |
| 56 | href="#bundlequalifier">Bundles with qualifier-only increases |
| 57 | </a> |
| 58 | </li> |
| 59 | </ul> |
| 60 | <p>Features</p> |
| 61 | <ul> |
| 62 | <li> |
| 63 | <a |
| 64 | href="#feauturequalifier">Features with qualifier-only increases |
| 65 | </a> |
| 66 | </li> |
| 67 | </ul> |
| 68 | <h3 |
| 69 | id="bundleerrors">Bundles with versioning errors</h3> |
| 70 | <dl> |
| 71 | <xsl:for-each |
| 72 | select="versioningCompare"> |
| 73 | <xsl:if |
| 74 | test="@kind = 'error' and @codePackageType ='bundle'"> |
| 75 | <dt |
| 76 | style="font-weight: bold; color: crimson"> |
| 77 | <xsl:value-of |
| 78 | select="entry"/> |
| 79 | </dt> |
| 80 | <dd |
| 81 | style="font-family: monospace;"> |
| 82 | <xsl:value-of |
| 83 | select="current"/> |
| 84 | (current) |
| 85 | </dd> |
| 86 | <dd |
| 87 | style="font-family: monospace;"> |
| 88 | <xsl:value-of |
| 89 | select="reference"/> |
| 90 | (reference) |
| 91 | </dd> |
| 92 | </xsl:if> |
| 93 | </xsl:for-each> |
| 94 | </dl> |
| 95 | <h3 |
| 96 | id="featureerrors">Features with versioning errors</h3> |
| 97 | <dl> |
| 98 | <xsl:for-each |
| 99 | select="versioningCompare"> |
| 100 | <xsl:if |
| 101 | test="@kind = 'error' and @codePackageType ='feature'"> |
| 102 | <dt |
| 103 | style="font-weight: bold; color: crimson"> |
| 104 | <xsl:value-of |
| 105 | select="entry"/> |
| 106 | </dt> |
| 107 | <dd |
| 108 | style="font-family: monospace;"> |
| 109 | <xsl:value-of |
| 110 | select="current"/> |
| 111 | (current) |
| 112 | </dd> |
| 113 | <dd |
| 114 | style="font-family: monospace;"> |
| 115 | <xsl:value-of |
| 116 | select="reference"/> |
| 117 | (reference) |
| 118 | </dd> |
| 119 | </xsl:if> |
| 120 | </xsl:for-each> |
| 121 | </dl> |
| 122 | <h3 |
| 123 | id="bundlequalifier">Bundles with qualifier-only increases</h3> |
| 124 | <p>There may be occasions these do not always indicate a |
| 125 | true error (such as fixing a spelling mistake in a comment, |
| 126 | but it is clearer if qualifier-only increases are not |
| 127 | allowed, since usually it indicates that someone has changed |
| 128 | the code, but forgotten to increase the service or minor |
| 129 | version.</p> |
| 130 | <dl> |
| 131 | <xsl:for-each |
| 132 | select="versioningCompare"> |
| 133 | <xsl:if |
| 134 | test="@kind = 'increase' and @field='qualifier' and @codePackageType ='bundle'"> |
| 135 | <dt |
| 136 | style="font-weight: bold; color: crimson"> |
| 137 | <xsl:value-of |
| 138 | select="entry"/> |
| 139 | </dt> |
| 140 | <dd |
| 141 | style="font-family: monospace"> |
| 142 | <xsl:value-of |
| 143 | select="current"/> |
| 144 | (current) |
| 145 | </dd> |
| 146 | <dd |
| 147 | style="font-family: monospace"> |
| 148 | <xsl:value-of |
| 149 | select="reference"/> |
| 150 | (reference) |
| 151 | </dd> |
| 152 | </xsl:if> |
| 153 | </xsl:for-each> |
| 154 | </dl> |
| 155 | <h3 |
| 156 | id="feauturequalifier">Features with qualifier-only increases</h3> |
| 157 | <dl> |
| 158 | <xsl:for-each |
| 159 | select="versioningCompare"> |
| 160 | <xsl:if |
| 161 | test="@kind = 'increase' and @field='qualifier' and @codePackageType ='feature'"> |
| 162 | <dt |
| 163 | style="font-weight: bold; color: crimson"> |
| 164 | <xsl:value-of |
| 165 | select="entry"/> |
| 166 | </dt> |
| 167 | <dd |
| 168 | style="font-family: monospace"> |
| 169 | <xsl:value-of |
| 170 | select="current"/> |
| 171 | (current) |
| 172 | </dd> |
| 173 | <dd |
| 174 | style="font-family: monospace"> |
| 175 | <xsl:value-of |
| 176 | select="reference"/> |
| 177 | (reference) |
| 178 | </dd> |
| 179 | </xsl:if> |
| 180 | </xsl:for-each> |
| 181 | </dl> |
| 182 | </xsl:template> |
| 183 | </xsl:stylesheet> |