jeffliu | f789a36 | 2006-05-02 21:00:53 +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 | <p> |
| 8 | <b>Contact info: <xsl:value-of select="references/@contactInfo"/></b> |
| 9 | </p> |
| 10 | <table border="1"> |
| 11 | <tr> |
| 12 | <th>Name</th> |
| 13 | <th>Reference</th> |
| 14 | <th>Subclass</th> |
| 15 | <th>Implement</th> |
| 16 | <th>Instantiate</th> |
| 17 | </tr> |
| 18 | <xsl:for-each select="references/plugin"> |
| 19 | <xsl:sort select="@name"/> |
| 20 | <xsl:apply-templates select="." /> |
| 21 | </xsl:for-each> |
| 22 | </table> |
| 23 | </body> |
| 24 | </html> |
| 25 | </xsl:template> |
| 26 | <xsl:template match="plugin"> |
| 27 | <tr> |
| 28 | <td><b>Plugin : <xsl:value-of select="@id"/></b></td> |
| 29 | <td bgcolor="c8c8c8" colspan="4"> </td> |
| 30 | </tr> |
| 31 | <xsl:for-each select="class"> |
| 32 | <xsl:sort select="@name"/> |
| 33 | <xsl:apply-templates select="." /> |
| 34 | </xsl:for-each> |
| 35 | </xsl:template> |
| 36 | <xsl:template match="class"> |
| 37 | <tr> |
| 38 | <td>    <b>Class : <xsl:value-of select="@name"/></b></td> |
| 39 | <td><xsl:value-of select="@ref"/></td> |
| 40 | <td><xsl:value-of select="@subclass"/></td> |
| 41 | <td><xsl:value-of select="@impl"/></td> |
| 42 | <td><xsl:value-of select="@instantiate"/></td> |
| 43 | </tr> |
| 44 | <xsl:for-each select="method"> |
| 45 | <xsl:sort select="@name"/> |
| 46 | <xsl:apply-templates select="." /> |
| 47 | </xsl:for-each> |
| 48 | <xsl:for-each select="field"> |
| 49 | <xsl:sort select="@name"/> |
| 50 | <xsl:apply-templates select="." /> |
| 51 | </xsl:for-each> |
| 52 | </xsl:template> |
| 53 | <xsl:template match="method"> |
| 54 | <tr> |
| 55 | <td>        Method : <xsl:value-of select="@name"/>(...)</td> |
| 56 | <td><xsl:value-of select="@ref"/></td> |
| 57 | <td bgcolor="c8c8c8" colspan="3"> </td> |
| 58 | </tr> |
| 59 | </xsl:template> |
| 60 | <xsl:template match="field"> |
| 61 | <tr> |
| 62 | <td>        Field : <xsl:value-of select="@name"/></td> |
| 63 | <td><xsl:value-of select="@ref"/></td> |
| 64 | <td bgcolor="c8c8c8" colspan="3"> </td> |
| 65 | </tr> |
| 66 | </xsl:template> |
| 67 | </xsl:stylesheet> |