blob: 440033a43f15f232a1dcadf48504c5fcad886e09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
<page xmlns="http://www.gnome.org/~shaunm/mallard"
type="topic"
id="mal_block_tree">
<info>
<version number="0.1" date="2007-02-21" status="stub"/>
</info>
<title>Tree Lists</title>
<synopsis><code mime="application/relax-ng-compact-syntax">
mal_block_tree = element tree {
attribute style { xsd:NMTOKENS } ?,
attribute * - (mal:* | local:*) { text } *,
<link xref="mal_block_title">mal_block_title</link> ?,
mal_tree_item +
}
mal_tree_item = element item {
attribute style { xsd:NMTOKENS } ?,
attribute * - (mal:* | local:*) { text } *,
<link xref="mal_inline">mal_inline</link>,
mal_tree_item *
}
</code></synopsis>
<!-- BEGIN examples -->
<section id="examples">
<title>Examples</title>
<p>Use a tree to outline a class heirarchy inside a
<code xref="mal_block_synopsis">>synopsis</code> element:</p>
<example>
<code><![CDATA[
<synopsis>
<tree>
<item>
<code>GtkBin</code>
<item>
<code>GtkButton</code>
<item><code>GtkToggleButton</code></item>
<item><code>GtkColorButton</code></item>
<item><code>GtkFontButton</code></item>
<item><code>GtkLinkButton</code></item>
<item><code>GtkOptionMenu</code></item>
<item><code>GtkScaleButton</code></item>
</item>
</item>
</tree>
</synopsis>]]></code>
<synopsis>
<tree>
<item>
<code>GtkBin</code>
<item>
<code>GtkButton</code>
<item><code>GtkToggleButton</code></item>
<item><code>GtkColorButton</code></item>
<item><code>GtkFontButton</code></item>
<item><code>GtkLinkButton</code></item>
<item><code>GtkOptionMenu</code></item>
<item><code>GtkScaleButton</code></item>
</item>
</item>
</tree>
</synopsis>
</example>
<tree style="lines">
<item>
one
<item>do</item>
<item>re</item>
<item>mi</item>
</item>
<item>
two
</item>
</tree>
</section>
<!-- END examples -->
</page>
|