Exemple de DTD


<?xml version="1.0" encoding="ISO-8859-1"?>
<!ELEMENT article (article_meta, contenu_article, contenu_note+, bibliographie)>
<!ELEMENT article_meta (titre, auteur, revue, num_pages, num_volume, num_tome, editeur, date_pub)>
<!ELEMENT titre (#PCDATA)>
<!ELEMENT auteur (nom, prenom)>
<!ELEMENT nom (#PCDATA)>
<!ELEMENT prenom (#PCDATA)>
<!ELEMENT revue (#PCDATA)>
<!ELEMENT num_pages (#PCDATA)>
<!ELEMENT num_volume (#PCDATA)>
<!ELEMENT num_tome (#PCDATA)>
<!ELEMENT editeur (nom_editeur)>
<!ELEMENT nom_editeur (#PCDATA)>
<!ELEMENT date_pub (#PCDATA)>

<!ELEMENT contenu_article (section+)>
<!ELEMENT section (titre_section, para+, sous_section+)>
<!ELEMENT titre_section (#PCDATA)>
<!ELEMENT para (contenu_para+)>
<!ELEMENT sous_section (titre_sous_section, para+, s_s_section*)>
<!ELEMENT titre_sous_section (#PCDATA)>
<!ELEMENT s_s_section (titre_s_s_section, para+)>
<!ELEMENT titre_s_s_section (#PCDATA)>
<!ELEMENT contenu_para (#PCDATA | figure)*>
<!ELEMENT figure (titre, graphic)>
<!ELEMENT graphic EMPTY>
<!ATTLIST graphic
 fileref CDATA #REQUIRED
>
<!ELEMENT contenu_note (#PCDATA)>
<!ELEMENT bibliographie (contenu_bibliographie+)>
<!ELEMENT contenu_bibliographie (#PCDATA)>

Auteur et WebMaster:   César Cruz S..
©2006 César Cruz. Tous droits réservés.