| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <xsl:stylesheet |
| version="1.0" |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| |
| <xsl:output |
| method="html" |
| indent="yes" /> |
| |
| <xsl:template match="/"> |
| <html> |
| <body> |
| <xsl:apply-templates select="versioningReport" /> |
| </body> |
| </html> |
| </xsl:template> |
| |
| <xsl:template match="versioningReport"> |
| <h2>Versioning Report</h2> |
| <xsl:apply-templates select="versioningReportData" /> |
| </xsl:template> |
| |
| |
| |
| <xsl:template |
| name="errors" |
| match="versioningReportData"> |
| <p> |
| For |
| <xsl:value-of select="@current" /> |
| using |
| <xsl:value-of select="@id" /> |
| as the reference.</p> |
| <h3>Bundles with versioning errors</h3> |
| <dl> |
| <xsl:for-each select="versioningCompare"> |
| <xsl:if test="@kind = 'error'"> |
| <dt style="font-weight: bold; color: crimson"> |
| <xsl:value-of select="entry" /> |
| </dt> |
| <dd style="font-family: monospace;"><xsl:value-of select="current" /> (current)</dd> |
| <dd style="font-family: monospace;"><xsl:value-of select="reference" /> (reference)</dd> |
| </xsl:if> |
| </xsl:for-each> |
| </dl> |
| <h3>Bundles with qualifier-only increases</h3> |
| <dl> |
| <xsl:for-each select="versioningCompare"> |
| <xsl:if test="@kind = 'increase' and @field='qualifier'"> |
| <dt style="font-weight: bold; color: gold"> |
| <xsl:value-of select="entry" /> |
| </dt> |
| <dd style="font-family: monospace"><xsl:value-of select="current" /> (current)</dd> |
| <dd style="font-family: monospace"><xsl:value-of select="reference" /> (reference)</dd> |
| </xsl:if> |
| </xsl:for-each> |
| </dl> |
| </xsl:template> |
| |
| |
| </xsl:stylesheet> |