… | |
… | |
10 | <xsl:apply-templates select="child::node()[2][name() = 'p']"/> |
10 | <xsl:apply-templates select="child::node()[2][name() = 'p']"/> |
11 | </p> |
11 | </p> |
12 | <table border="1" width="100%"> |
12 | <table border="1" width="100%"> |
13 | <tr> |
13 | <tr> |
14 | <th width="10%">NAME</th> |
14 | <th width="10%">NAME</th> |
15 | <th width="10%">TYPE</th> |
15 | <th width="8%">TYPE</th> |
16 | <th width="15%">DEFAULT</th> |
16 | <th width="4%">VALUE</th> |
17 | <th>DESCRIPTION</th> |
17 | <th>DESCRIPTION</th> |
18 | <th width="15%">DEC-GUARD</th> |
18 | <th width="10%">GUARD</th> |
19 | </tr> |
19 | </tr> |
20 | <xsl:apply-templates select="child::member"/> |
20 | <xsl:apply-templates select="child::member"/> |
21 | </table> |
21 | </table> |
22 | </xsl:template> |
22 | </xsl:template> |
23 | |
23 | |
24 | <xsl:template match="member"> |
24 | <xsl:template match="member"> |
25 | <tr> |
25 | <tr> |
26 | <td><xsl:value-of select="@name"/></td> |
26 | <td><xsl:value-of select="@name"/></td> |
27 | <td><xsl:value-of select="@type"/></td> |
27 | <td><xsl:value-of select="@type"/></td> |
28 | <td><xsl:value-of select="@default"/> </td> |
28 | <td><xsl:value-of select="@value"/> </td> |
29 | <td> |
29 | <td> |
30 | <!-- horrible hack --> |
30 | <!-- horrible hack --> |
31 | <xsl:apply-templates select="following-sibling::node()[1][name() != 'member']"/> |
31 | <xsl:apply-templates select="following-sibling::node()[1][name() != 'member']"/> |
32 | <xsl:apply-templates select="child::node()[2][name() = 'p']"/> |
32 | <xsl:apply-templates select="child::node()[2][name() = 'p']"/> |
33 |   |
33 |   |
… | |
… | |
42 | |
42 | |
43 | <xsl:template match="type"> |
43 | <xsl:template match="type"> |
44 | <h4>TYPE <xsl:value-of select="@name"/></h4> |
44 | <h4>TYPE <xsl:value-of select="@name"/></h4> |
45 | BASE TYPE <xsl:value-of select="@type"/>, LENGTH <xsl:value-of select="@length"/>, MULTIPLIER <xsl:value-of select="@multiplier"/> |
45 | BASE TYPE <xsl:value-of select="@type"/>, LENGTH <xsl:value-of select="@length"/>, MULTIPLIER <xsl:value-of select="@multiplier"/> |
46 | <br/> |
46 | <br/> |
|
|
47 | </xsl:template> |
|
|
48 | |
|
|
49 | <xsl:template match="enum|set"> |
|
|
50 | <h4><xsl:value-of select="name()"/>: <xsl:value-of select="@name"/></h4> |
|
|
51 | <xsl:call-template name="mbody"/> |
47 | </xsl:template> |
52 | </xsl:template> |
48 | |
53 | |
49 | <xsl:template match="struct"> |
54 | <xsl:template match="struct"> |
50 | <h4>STRUCTURE <xsl:value-of select="@name"/></h4> |
55 | <h4>STRUCTURE <xsl:value-of select="@name"/></h4> |
51 | <xsl:if test="@class"> |
56 | <xsl:if test="@class"> |