summaryrefslogtreecommitdiff
path: root/sandbox/mallard/spec/mal_code.xml
blob: 4cfe00f150e3815500b299dbdcf07ba85bb2ae4a (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
<topic xmlns="http://www.gnome.org/~shaunm/mallard"
       id="mal_code">
<info>
  <link type="guide" xref="mal_block#simple"/>
  <link type="guide" xref="mal_inline"/>
  <version number="0.1" date="2007-02-21" status="stub"/>
</info>

<title>Code Snippets</title>

<synopsis><code mime="application/relax-ng-compact-syntax">
mal_code_block = element code {
  <link xref="mal_attr">mal_attr_common</link>,
  attribute mime { text },
  <link xref="mal_inline">mal_inline</link>+
}</code></synopsis>

<synopsis><code>
mal_code_inline = element code {
  <link xref="mal_attr">mal_attr_common</link>,
  attribute mime { text },
  <link xref="mal_inline">mal_inline_simple</link>+
}</code></synopsis>

<comment>
  <cite name="Shaun McCance" date="2006-12-08"/>
  <p>Add intro material.</p>
</comment>


<!-- BEGIN examples -->
<section id="examples" status="tentative">
  <title>Examples</title>
  <comment>
    <cite name="Shaun McCance" date="2007-01-25"/>
    <p>Add examples.</p>
  </comment>
</section>
<!-- END examples -->


<!-- BEGIN processing -->
<section id="processing" status="tentative">
  <title>Processing Expectations</title>
  <comment>
    <cite name="Shaun McCance" date="2007-01-25"/>
    <p>Add processing expectations.  For block, strip leading/trailing
    newline.  Do not strip leading indentation.</p>
  </comment>
</section>
<!-- END processing -->


<!-- BEGIN docbook -->
<section id="docbook" status="tentative">
  <title>Comparison to DocBook</title>
  <comment>
    <cite name="Shaun McCance" date="2007-01-25"/>
    <p>Add: code, class*, func*, programlisting</p>
  </comment>
</section>
<!-- END docbook -->

</topic>