la DTD dans XML

 
 
<?xml encoding="ISO-8859-1"?>
<!--
DTD for student project management - DRAFT !!
 -->

<!ENTITY % stamp '
  id ID #IMPLIED 
  creation-day NMTOKEN #IMPLIED
  creation-month (00|01|02|03|04|05|06|07|08|09|10|11|12) "07"
  creation-year (0|1999|2000|2001) "1999"
  created-by NMTOKEN #IMPLIED
  version NMTOKEN #IMPLIED
  status (draft|final|obsolete) #IMPLIED
  approval (ok|not-ok|so-so) #IMPLIED 
  main-author CDATA #IMPLIED
'
>

<!ELEMENT project (title, 
                  (planning)?,
                  group, 
                  (specifications)?,
                  (problems)?, 
                  (resources)?,
                  (misc-info)?, 
                  (results)?,
                  (outlook)?,
                  (after-thoughts)?,
                  (teacher-comments)? )
                  >
<!ATTLIST project %stamp; >
 

<!ELEMENT title (#PCDATA)>

<!ELEMENT planning EMPTY>
<!ATTLIST planning
  start-day NMTOKEN #REQUIRED
  start-month (00|01|02|03|04|05|06|07|08|09|10|11|12) "07"
  start-year (0|1999|2000|2001) "1999"
  end-day NMTOKEN #REQUIRED
  end-month (00|01|02|03|04|05|06|07|08|09|10|11|12) "07"
  end-year (0|1999|2000|2001) "1999"
  completion NMTOKEN #REQUIRED
  man-days NMTOKEN #REQUIRED
>

<!ELEMENT specifications ((specification)+, (misc-info)?, (after-thoughts)?, (teacher-comments)?)>
<!ATTLIST specifications %stamp; >

<!ELEMENT specification(main-goal,
                         objectives,
                        (context)?, 
                        (workpackages)?,
                        (stories)?,
                        (resources)?,
                        (deliverables)?,
                        (problems)?, 
                        (after-thoughts)?, (teacher-comments)? )>
<!ATTLIST specification %stamp; >

 page originale du Tecfa
 
 
 
 
 
 

GULL - Genève - 02 Mars 2000
 next