Handle file or line being undefined. Warn about repeated symbols in
[gtk-doc.git] / devhelp2.xsd
blob793432f1f50d2c654ee78eaa95dc276b614a7a00
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema
3 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4 xmlns="urn:devhelp"
5 targetNamespace="urn:devhelp"
6 elementFormDefault="qualified">
8 <xsd:simpleType name="keyword-type">
9 <xsd:restriction base="xsd:string">
10 <xsd:enumeration value="enum"/>
11 <xsd:enumeration value="function"/>
12 <xsd:enumeration value="macro"/>
13 <xsd:enumeration value="struct"/>
14 </xsd:restriction>
15 </xsd:simpleType>
17 <xsd:attribute name="title" type="xsd:string"/>
18 <xsd:attribute name="link" type="xsd:string"/>
19 <xsd:attribute name="author" type="xsd:string"/>
20 <xsd:attribute name="name" type="xsd:string"/>
21 <xsd:attribute name="version" type="xsd:integer"/>
23 <xsd:attribute name="type" type="keyword-type"/>
24 <xsd:attribute name="since" type="xsd:float"/>
25 <xsd:attribute name="deprecated" type="xsd:boolean"/>
27 <xsd:element name="sub">
28 <xsd:complexType>
29 <xsd:sequence>
30 <xsd:element ref="sub" minOccurs="0" maxOccurs="unbounded"/>
31 </xsd:sequence>
32 <xsd:attribute ref="name" use="required"/>
33 <xsd:attribute ref="link" use="required"/>
34 </xsd:complexType>
35 </xsd:element>
37 <xsd:element name="chapters">
38 <xsd:complexType>
39 <xsd:sequence>
40 <xsd:element ref="sub" minOccurs="0" maxOccurs="unbounded"/>
41 </xsd:sequence>
42 </xsd:complexType>
43 </xsd:element>
45 <xsd:element name="keyword">
46 <xsd:complexType>
47 <xsd:attribute ref="type" use="required"/>
48 <xsd:attribute ref="name" use="required"/>
49 <xsd:attribute ref="link" use="required"/>
50 <xsd:attribute ref="since"/>
51 <xsd:attribute ref="deprecated"/>
52 </xsd:complexType>
53 </xsd:element>
55 <xsd:element name="functions">
56 <xsd:complexType>
57 <xsd:sequence>
58 <xsd:element ref="keyword" minOccurs="0" maxOccurs="unbounded"/>
59 </xsd:sequence>
60 </xsd:complexType>
61 </xsd:element>
63 <xsd:element name="book">
64 <xsd:complexType>
65 <xsd:sequence>
66 <xsd:element ref="chapters" minOccurs="1" maxOccurs="1"/>
67 <xsd:element ref="functions" minOccurs="1" maxOccurs="1"/>
68 </xsd:sequence>
69 <xsd:attribute ref="title" use="required"/>
70 <xsd:attribute ref="link" use="required"/>
71 <xsd:attribute ref="author" use="required"/>
72 <xsd:attribute ref="name" use="required"/>
73 <xsd:attribute ref="version" use="required"/>
74 </xsd:complexType>
75 </xsd:element>
76 </xsd:schema>