Daniel Veillard | 154877e | 2003-01-30 12:17:05 +0000 | [diff] [blame] | 1 | <grammar xmlns="http://relaxng.org/ns/structure/1.0"> |
2 | <start> | ||||
3 | <element name="data"> | ||||
4 | <interleave> | ||||
5 | <text/> | ||||
6 | <ref name="inline.class"/> | ||||
7 | </interleave> | ||||
8 | </element> | ||||
9 | </start> | ||||
10 | |||||
11 | <define name="inline.class"> | ||||
12 | <choice> | ||||
13 | <element name="bold"> | ||||
14 | <ref name="inline"/> | ||||
15 | </element> | ||||
16 | <element name="italic"> | ||||
17 | <ref name="inline"/> | ||||
18 | </element> | ||||
19 | </choice> | ||||
20 | </define> | ||||
21 | |||||
22 | <define name="inline"> | ||||
23 | <zeroOrMore> | ||||
24 | <choice> | ||||
25 | <text/> | ||||
26 | <element name="code"> | ||||
27 | <ref name="inline"/> | ||||
28 | </element> | ||||
29 | <element name="em"> | ||||
30 | <ref name="inline"/> | ||||
31 | </element> | ||||
32 | <!-- etc --> | ||||
33 | </choice> | ||||
34 | </zeroOrMore> | ||||
35 | </define> | ||||
36 | </grammar> |