Merge branch 'MDL-33441' of git://github.com/danpoltawski/moodle
[moodle.git] / lib / xmldb / xmldb.dtd
blob20bad535c7bee1a7f4db379265c99b4a594fc99d
1 <!ELEMENT FIELD EMPTY >
2 <!ATTLIST FIELD DECIMALS NMTOKEN #IMPLIED >
3 <!ATTLIST FIELD DEFAULT NMTOKEN #IMPLIED >
4 <!ATTLIST FIELD LENGTH NMTOKEN #REQUIRED >
5 <!ATTLIST FIELD NAME NMTOKEN #REQUIRED >
6 <!ATTLIST FIELD NEXT NMTOKEN #IMPLIED >
7 <!ATTLIST FIELD NOTNULL ( false | true ) #REQUIRED >
8 <!ATTLIST FIELD PREVIOUS NMTOKEN #IMPLIED >
9 <!ATTLIST FIELD SEQUENCE ( false | true ) #REQUIRED >
10 <!ATTLIST FIELD TYPE ( binary | char | float | int | number | text ) #REQUIRED >
11 <!ATTLIST FIELD UNSIGNED ( false | true ) #IMPLIED >
13 <!ELEMENT FIELDS ( FIELD+ ) >
15 <!ELEMENT INDEX EMPTY >
16 <!ATTLIST INDEX COMMENT CDATA #IMPLIED >
17 <!ATTLIST INDEX FIELDS CDATA #REQUIRED >
18 <!ATTLIST INDEX NAME NMTOKEN #REQUIRED >
19 <!ATTLIST INDEX NEXT NMTOKEN #IMPLIED >
20 <!ATTLIST INDEX PREVIOUS NMTOKEN #IMPLIED >
21 <!ATTLIST INDEX UNIQUE ( false | true ) #REQUIRED >
23 <!ELEMENT INDEXES ( INDEX+ ) >
25 <!ELEMENT KEY EMPTY >
26 <!ATTLIST KEY COMMENT CDATA #IMPLIED >
27 <!ATTLIST KEY FIELDS CDATA #REQUIRED >
28 <!ATTLIST KEY NAME NMTOKEN #REQUIRED >
29 <!ATTLIST KEY NEXT NMTOKEN #IMPLIED >
30 <!ATTLIST KEY PREVIOUS NMTOKEN #IMPLIED >
31 <!ATTLIST KEY TYPE ( primary | unique | foreign ) #REQUIRED >
33 <!ELEMENT KEYS ( KEY+ ) >
35 <!ELEMENT TABLE ( FIELDS, KEYS, INDEXES? ) >
36 <!ATTLIST TABLE COMMENT CDATA #REQUIRED >
37 <!ATTLIST TABLE NAME ID #REQUIRED >
38 <!ATTLIST TABLE NEXT NMTOKEN #IMPLIED >
39 <!ATTLIST TABLE PREVIOUS NMTOKEN #IMPLIED >
41 <!ELEMENT TABLES ( TABLE+ ) >
43 <!ELEMENT XMLDB ( TABLES ) >
44 <!ATTLIST XMLDB COMMENT CDATA #REQUIRED >
45 <!ATTLIST XMLDB PATH CDATA #REQUIRED >
46 <!ATTLIST XMLDB VERSION NMTOKEN #REQUIRED >