annotate html.xsl @ 12:79dfd9765a67

I *really* should commit more often.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 04 Oct 2011 11:45:04 +0200
parents b3644dff344c
children 2925b0e246c6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
2 <x:stylesheet version="1.0"
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
3 exclude-result-prefixes="o h"
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
4 xmlns:x="http://www.w3.org/1999/XSL/Transform"
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
5 xmlns:o="urn:opcodes:description"
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
6 xmlns:h="http://www.w3.org/1999/xhtml"
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
7 xmlns="http://www.w3.org/1999/xhtml">
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
8
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
9 <x:output encoding="utf-8" indent="yes" method="xml" />
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
10
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
11 <x:template match="/o:opcodes">
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
12 <html>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
13 <head>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
14 <title><x:value-of select="o:title"/></title>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
15 </head>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
16 <body>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
17 <h1><x:value-of select="o:title"/></h1>
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
18
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
19 <x:for-each select="o:text/h:div/*">
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
20 <x:call-template name="xhtml"/>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
21 </x:for-each>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
22
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
23 <x:apply-templates select="o:op"/>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
24 </body>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
25 </html>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
26 </x:template>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
27
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
28 <x:template match="o:op">
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
29 <h3 id="i{o:num}">
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
30 <x:value-of select="o:num"/>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
31 <x:if test="o:name != ''">
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
32 <x:text> - </x:text><small><x:value-of select="o:name"/></small>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
33 </x:if>
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
34 </h3>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
35
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
36 <x:choose>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
37 <x:when test="o:params">
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
38 <x:apply-templates select="o:params"/>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
39 </x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
40 <x:otherwise>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
41 <p>Takes no parameters.</p>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
42 </x:otherwise>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
43 </x:choose>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
44
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
45 <x:apply-templates select="o:desc"/>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
46 </x:template>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
47
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
48 <x:template match="o:params">
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
49 <table>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
50 <tr>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
51 <th>Type</th>
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
52 <x:if test="o:param/@name"><th>Name</th></x:if>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
53 <x:if test="o:param/@unit"><th>Unit</th></x:if>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
54 <x:if test="o:param/@var"><th>Variable</th></x:if>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
55 <x:if test="o:param != ''"><th>Notes</th></x:if>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
56 <x:if test="o:param/@values"><th>Values</th></x:if>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
57 </tr>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
58 <x:apply-templates select="o:param"/>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
59 </table>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
60 </x:template>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
61
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
62 <x:template match="o:param">
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
63 <tr>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
64 <td><x:apply-templates select="@type"/></td>
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
65 <x:if test="../o:param/@name">
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
66 <td><x:value-of select="@name"/></td>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
67 </x:if>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
68 <x:if test="../o:param/@unit">
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
69 <td><x:value-of select="@unit"/></td>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
70 </x:if>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
71 <x:if test="../o:param/@var">
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
72 <td><x:value-of select="@var"/></td>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
73 </x:if>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
74 <x:if test="../o:param != ''">
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
75 <td><x:value-of select="."/></td>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
76 </x:if>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
77 <x:if test="../o:param/@values">
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
78 <td><x:value-of select="@values"/></td>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
79 </x:if>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
80 </tr>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
81 </x:template>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
82
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
83 <x:template match="@type">
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
84 <x:choose>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
85 <x:when test=". = 'c'">int8</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
86 <x:when test=". = 's'">int16</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
87 <x:when test=". = 'S'">int32</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
88 <x:when test=". = 'b'">uint8</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
89 <x:when test=". = 'u'">uint16</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
90 <x:when test=". = 'U'">uint32</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
91 <x:when test=". = 'f'">float</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
92 <x:when test=". = 'd'">double</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
93 <x:when test=". = 'z'">string</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
94 <x:when test=". = 'm'">data</x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
95 <x:otherwise><x:value-of select="."/></x:otherwise>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
96 </x:choose>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
97 </x:template>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
98
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
99 <x:template match="o:desc">
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
100 <x:choose>
12
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
101 <x:when test="count(*) &gt; 1">
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
102 <x:apply-templates/>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
103 </x:when>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
104 <x:otherwise>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
105 <p><x:apply-templates/></p>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
106 </x:otherwise>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
107 </x:choose>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
108 </x:template>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
109
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
110 <x:template name="xhtml" match="node() | @*">
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
111 <x:copy>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
112 <x:apply-templates select="node() | @*" />
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
113 </x:copy>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
114 </x:template>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
115
12
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
116 <x:template match="o:p"><p><x:apply-templates/></p></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
117 <x:template match="o:pre"><pre><x:apply-templates/></pre></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
118 <x:template match="o:br"><br/></x:template>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
119
12
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
120 <x:template match="o:dl"><dl><x:apply-templates/></dl></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
121 <x:template match="o:dt"><dt><x:apply-templates/></dt></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
122 <x:template match="o:dd"><dd><x:apply-templates/></dd></x:template>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
123
12
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
124 <x:template match="o:table"><table><x:apply-templates/></table></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
125 <x:template match="o:tr"><tr><x:apply-templates/></tr></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
126 <x:template match="o:th"><th><x:apply-templates/></th></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
127 <x:template match="o:td"><td><x:apply-templates/></td></x:template>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
128
12
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
129 <x:template match="o:ol"><ol><x:apply-templates/></ol></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
130 <x:template match="o:li"><li><x:apply-templates/></li></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
131
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
132 <x:template match="o:a"><a href="{@href}"><x:apply-templates/></a></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
133 <x:template match="o:code"><code><x:apply-templates/></code></x:template>
79dfd9765a67 I *really* should commit more often.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 5
diff changeset
134 <x:template match="o:sup"><sup><x:apply-templates/></sup></x:template>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
135
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
136 <x:template match="o:stage">
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
137 <x:text>stage </x:text><x:value-of select="."/>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
138 </x:template>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
139
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
140 <x:template match="o:ref">
5
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
141 <x:variable name="ref" select="."/>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
142 <a href="#i{$ref}">
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
143 <x:choose>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
144 <x:when test="/o:opcodes/o:op[o:num = $ref]/o:name = ''">
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
145 <x:text>instruction </x:text><x:value-of select="$ref"/>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
146 </x:when>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
147 <x:otherwise>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
148 <x:value-of select="/o:opcodes/o:op[o:num = $ref]/o:name"/>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
149 </x:otherwise>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
150 </x:choose>
b3644dff344c Way too much changes. :/
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 0
diff changeset
151 </a>
0
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
152 </x:template>
f82309a9465e Initial commit.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff changeset
153 </x:stylesheet>