ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 | <xsl:stylesheet version="1.0" |
| 3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 4 | <xsl:template match="/"> |
| 5 | <html> |
| 6 | <body> |
| 7 | <h2><xsl:value-of select="api-compatibility/@name"/></h2> |
| 8 | <xsl:if test="api-compatibility/removed-apis/class-api"> |
| 9 | <fieldset> |
| 10 | <legend><img src="../FAIL.gif"/> Removed APIs</legend> |
| 11 | <xsl:for-each select="api-compatibility/removed-apis/class-api"> |
| 12 | <xsl:apply-templates select="." /> |
| 13 | </xsl:for-each> |
| 14 | </fieldset> |
| 15 | </xsl:if> |
| 16 | <br/> |
| 17 | <xsl:if test="api-compatibility/new-apis/class-api"> |
| 18 | <fieldset> |
| 19 | <legend>New APIs</legend> |
| 20 | <xsl:for-each select="api-compatibility/new-apis/class-api"> |
| 21 | <xsl:apply-templates select="." /> |
| 22 | </xsl:for-each> |
| 23 | </fieldset> |
| 24 | </xsl:if> |
| 25 | </body> |
| 26 | </html> |
| 27 | </xsl:template> |
| 28 | <xsl:template match="class-api"> |
| 29 | <h3><xsl:value-of select="@name"/></h3> |
| 30 | <ul> |
| 31 | <xsl:for-each select="method-api"> |
| 32 | <li><b>Method - </b><xsl:value-of select="@name"/> <i><xsl:value-of select="@descriptor"/></i></li> |
| 33 | </xsl:for-each> |
| 34 | </ul> |
| 35 | <ul> |
| 36 | <xsl:for-each select="field-api"> |
| 37 | <li><b>Field - </b><xsl:value-of select="@name"/> <i><xsl:value-of select="@descriptor"/></i></li> |
| 38 | </xsl:for-each> |
| 39 | </ul> |
| 40 | </xsl:template> |
| 41 | </xsl:stylesheet> |