forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmldb.dtd
50 lines (41 loc) · 1.69 KB
/
xmldb.dtd
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
<!ELEMENT FIELD EMPTY >
<!ATTLIST FIELD DECIMALS NMTOKEN #IMPLIED >
<!ATTLIST FIELD DEFAULT NMTOKEN #IMPLIED >
<!-- TODO: Moodle 2.1 - Drop ENUM and ENUMVALUES attributes -->
<!ATTLIST FIELD ENUM ( false | true ) #IMPLIED >
<!ATTLIST FIELD ENUMVALUES CDATA #IMPLIED >
<!ATTLIST FIELD LENGTH NMTOKEN #REQUIRED >
<!ATTLIST FIELD NAME NMTOKEN #REQUIRED >
<!ATTLIST FIELD NEXT NMTOKEN #IMPLIED >
<!ATTLIST FIELD NOTNULL ( false | true ) #REQUIRED >
<!ATTLIST FIELD PREVIOUS NMTOKEN #IMPLIED >
<!ATTLIST FIELD SEQUENCE ( false | true ) #REQUIRED >
<!ATTLIST FIELD TYPE ( binary | char | float | int | number | text ) #REQUIRED >
<!ATTLIST FIELD UNSIGNED ( false | true ) #IMPLIED >
<!ELEMENT FIELDS ( FIELD+ ) >
<!ELEMENT INDEX EMPTY >
<!ATTLIST INDEX COMMENT CDATA #IMPLIED >
<!ATTLIST INDEX FIELDS CDATA #REQUIRED >
<!ATTLIST INDEX NAME NMTOKEN #REQUIRED >
<!ATTLIST INDEX NEXT NMTOKEN #IMPLIED >
<!ATTLIST INDEX PREVIOUS NMTOKEN #IMPLIED >
<!ATTLIST INDEX UNIQUE ( false | true ) #REQUIRED >
<!ELEMENT INDEXES ( INDEX+ ) >
<!ELEMENT KEY EMPTY >
<!ATTLIST KEY COMMENT CDATA #IMPLIED >
<!ATTLIST KEY FIELDS CDATA #REQUIRED >
<!ATTLIST KEY NAME NMTOKEN #REQUIRED >
<!ATTLIST KEY NEXT NMTOKEN #IMPLIED >
<!ATTLIST KEY PREVIOUS NMTOKEN #IMPLIED >
<!ATTLIST KEY TYPE ( primary | unique | foreign ) #REQUIRED >
<!ELEMENT KEYS ( KEY+ ) >
<!ELEMENT TABLE ( FIELDS, KEYS, INDEXES? ) >
<!ATTLIST TABLE COMMENT CDATA #REQUIRED >
<!ATTLIST TABLE NAME ID #REQUIRED >
<!ATTLIST TABLE NEXT NMTOKEN #IMPLIED >
<!ATTLIST TABLE PREVIOUS NMTOKEN #IMPLIED >
<!ELEMENT TABLES ( TABLE+ ) >
<!ELEMENT XMLDB ( TABLES ) >
<!ATTLIST XMLDB COMMENT CDATA #REQUIRED >
<!ATTLIST XMLDB PATH CDATA #REQUIRED >
<!ATTLIST XMLDB VERSION NMTOKEN #REQUIRED >