Add projects DTD

This commit is contained in:
Némunaire 2013-10-09 20:29:15 +02:00
parent aaa5797313
commit cd29f491cc
2 changed files with 32 additions and 0 deletions

18
htdocs/exos.dtd Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!ELEMENT theme (title,exercice+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT exercice (title,points,(statement|key|file*))>
<!ATTLIST exercice id ID #REQUIRED>
<!ATTLIST exercice level (sandbox|easy|simple|medium|hard|extrem) #REQUIRED>
<!ATTLIST exercice depends IDREFS #IMPLIED>
<!ELEMENT points (#PCDATA)>
<!ELEMENT statement (#PCDATA)>
<!ELEMENT key (#PCDATA)>
<!ELEMENT file (#PCDATA)>

14
htdocs/users.dtd Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!ELEMENT users (user+)>
<!ELEMENT user (username,firstname,lastname,company)>
<!ATTLIST user id ID #REQUIRED>
<!ELEMENT username (#PCDATA)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT company (#PCDATA)>