<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!-- <!DOCTYPE carnet SYSTEM "03.11_exercice_2_dtd_xml.dtd"> -->
<!DOCTYPE carnet 
[
	<!ELEMENT carnet (individu+)>

	<!ELEMENT individu (nom,prenom, adresse?,(telephone|courriel)*, courriel)>

	<!ATTLIST individu
		id ID #REQUIRED
		pere IDREF #IMPLIED
		mere IDREF #IMPLIED
	>

		<!-- in element individu -->
		<!ELEMENT nom (charString)>
		<!ELEMENT prenom (#PCDATA)>
		<!ELEMENT adresse (no_civique, nom_rue, appartement?, ville, province?, pays?, code_postal?)>
		<!ELEMENT telephone (#PCDATA)>
		<!ATTLIST telephone
			indicatif CDATA #REQUIRED
			type (residentiel|cellulaire|bureau|autre) #REQUIRED
		>
		<!ELEMENT courriel (#PCDATA)>
		<!ATTLIST courriel
			principal (vrai|faux) "vrai"
		>

			<!-- in element adresse -->
			<!ELEMENT no_civique (#PCDATA)>
			<!ELEMENT nom_rue (#PCDATA)>
			<!ATTLIST nom_rue
				type (rue|boulevard|avenue|chemin|court|croissant|promenade|autre) "rue"
				direction CDATA #IMPLIED
			>
			<!ELEMENT ville (#PCDATA)>
			<!ELEMENT appartement (#PCDATA)>
			<!ELEMENT province (#PCDATA)>
			<!ELEMENT pays (#PCDATA)>
			<!ELEMENT code_postal (#PCDATA)>

	<!ENTITY % charString = "(#PCDATA)">
	<!-- <!ENTITY % chiffre [0030-0039]>
	<!ENTITY % no_telephone (%chiffre, %chiffre, %chiffre, - , %chiffre, %chiffre, %chiffre, %chiffre)> -->
]
>
<!--
/*******************************************************************************************************/
/*                                                                                                     */
/*  Fichier....................:  03.11_exercice_2_dtd_xml.xml                                         */
/*  Type.......................:  Document XML                                                         */
/*  Titre......................:  Exercie 2, XML valide avec DTD externe.                              */
/*  Auteurs....................:  ©2011 Richard Vigneux, Cégep de Sherbrooke                           */
/*  Date de création...........:  2009-01-29                                                           */
/*  Date de mise en production.:  2009-01-29                                                           */
/*                                                                                                     */
/*******************************************************************************************************/
/*                                                                                                     */
/*  - Ce document XML est un document valide avec DTD externe.                                         */
/*                                                                                                     */
/*  En entrée: RIEN                                                                                    */
/*                                                                                                     */
/*  En sortie: Document XML (n'est pas fait pour l'affichage).                                         */
/*                                                                                                     */
/*******************************************************************************************************/
-->
<carnet>
  <individu id="ind_1">
    <nom>Letendre</nom>
    <prenom>Rudolf</prenom>
    <adresse>
      <no_civique>1937</no_civique>
      <nom_rue type="boulevard">Porteland</nom_rue>
      <ville>Sherbrooke</ville>
      <code_postal>J1J1T7</code_postal>
    </adresse>
    <telephone indicatif="819" type="residentiel">562-2443</telephone>
    <telephone indicatif="819" type="cellulaire">345-4422</telephone>
    <courriel principal="vrai">rudolf.letendre@videotron.ca</courriel>
  </individu>
  <individu id="ind_2">
    <nom>Caron</nom>
    <prenom>Louisette</prenom>
    <adresse>
      <no_civique>2310</no_civique>
      <nom_rue type="rue">Forand</nom_rue>
      <ville>Magog</ville>
    </adresse>
    <courriel principal="vrai">louisette.caron@videotron.ca</courriel>
    <courriel principal="faux">louisette_c400@aol.com</courriel>
  </individu>
  <individu id="ind_3" pere="ind_1" mere="ind_2">
    <nom>Letendre</nom>
    <prenom>Alexandre</prenom>
    <adresse>
      <no_civique>275</no_civique>
      <nom_rue type="rue" direction="E">King</nom_rue>
      <appartement>4</appartement>
      <ville>Sherbrooke</ville>
      <province>Québec</province>
      <pays>Canada</pays>
      <code_postal>J1G1B2</code_postal>
    </adresse>
    <telephone indicatif="819" type="residentiel">563-2241</telephone>
    <courriel>allet@hotmail.com</courriel>
  </individu>
</carnet>
