… | |
… | |
4 | <xsl:output method="xhtml" omit-xml-declaration='yes' media-type="text/html" encoding="utf-8"/> |
4 | <xsl:output method="xhtml" omit-xml-declaration='yes' media-type="text/html" encoding="utf-8"/> |
5 | |
5 | |
6 | <xsl:template name="mbody"> |
6 | <xsl:template name="mbody"> |
7 | <table border="1"> |
7 | <table border="1"> |
8 | <tr> |
8 | <tr> |
9 | <th>NAME</th><th>TYPE</th><th>DEFAULT</th><th>GUARD</th> |
9 | <th>NAME</th><th>TYPE</th><th>DEFAULT</th><th>DEC-GUARD</th> |
10 | </tr> |
10 | </tr> |
11 | <xsl:apply-templates select="node()" mode="mbody"/> |
11 | <xsl:apply-templates select="node()" mode="mbody"/> |
12 | </table> |
12 | </table> |
13 | </xsl:template> |
13 | </xsl:template> |
14 | |
14 | |
15 | <xsl:template match="macro"> |
15 | <xsl:template match="struct"> |
16 | <h4>MACRO <xsl:value-of select="@name"/></h4> |
16 | <h4>STRUCTURE <xsl:value-of select="@name"/></h4> |
|
|
17 | <xsl:if test="@class"> |
|
|
18 | CLASS: <xsl:value-of select="@class"/><br/> |
|
|
19 | </xsl:if> |
17 | <xsl:call-template name="mbody"/> |
20 | <xsl:call-template name="mbody"/> |
18 | </xsl:template> |
21 | </xsl:template> |
19 | |
22 | |
20 | <xsl:template match="message"> |
23 | <xsl:template match="message"> |
21 | <!-- formatting documentation without tags is just dumb, |
24 | <!-- formatting documentation without tags is just dumb, |
… | |
… | |
30 | <xsl:template match="member" mode="mbody"> |
33 | <xsl:template match="member" mode="mbody"> |
31 | <tr> |
34 | <tr> |
32 | <td><xsl:value-of select="@name"/></td> |
35 | <td><xsl:value-of select="@name"/></td> |
33 | <td><xsl:value-of select="@type"/></td> |
36 | <td><xsl:value-of select="@type"/></td> |
34 | <td><xsl:value-of select="@default"/></td> |
37 | <td><xsl:value-of select="@default"/></td> |
35 | <td><xsl:value-of select="@guard"/></td> |
38 | <td><b><xsl:value-of select="@guard-member"/></b> <xsl:value-of select="@guard-cond"/></td> |
36 | </tr> |
39 | </tr> |
37 | </xsl:template> |
40 | </xsl:template> |
38 | |
41 | |
39 | <xsl:template match="text()" mode="mbody"> |
42 | <xsl:template match="text()" mode="mbody"> |
40 | <!-- hack --> |
43 | <!-- hack --> |