blob: 562eae86c962026e4f5936a232233f6e1a89c651 (
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
|
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<!-- Image Module -->
<define name="img">
<element name="img">
<ref name="img.attlist"/>
</element>
</define>
<define name="img.attlist">
<interleave>
<ref name="Common.attrib"/>
<attribute name="src">
<ref name="URI.datatype"/>
</attribute>
<attribute name="alt">
<ref name="Text.datatype"/>
</attribute>
<optional>
<attribute name="longdesc">
<ref name="URI.datatype"/>
</attribute>
</optional>
<optional>
<attribute name="height">
<ref name="Length.datatype"/>
</attribute>
</optional>
<optional>
<attribute name="width">
<ref name="Length.datatype"/>
</attribute>
</optional>
</interleave>
</define>
<define name="Inline.class" combine="interleave">
<zeroOrMore>
<ref name="img"/>
</zeroOrMore>
</define>
</grammar>
|