hsiachi
Messages postés9Date d'inscriptionsamedi 19 mai 2007StatutMembreDernière intervention11 avril 2008
-
11 avril 2008 à 16:23
hsiachi
Messages postés9Date d'inscriptionsamedi 19 mai 2007StatutMembreDernière intervention11 avril 2008
-
11 avril 2008 à 18:09
Bonjour à tous,
J'aurai besoin d'un petit conseil svp.
voici le fichier xml qui ne veut pas valider le dtd et je suis bloquée:
<?xml version="1.0" ?>
<!DOCTYPE doc SYSTEM "doc4.dtd">
<doc>
<chapter num="ch1">
<title>Chapter Title</title>
<section>
<title>Section Title</title>
<note>This is a note.</note>
This is a test.
This is another test.
This is another test.
This is another test.
This is another test.
<note>This is a note.</note>
This is another test.
</section>
</chapter>
<chapter visible='false'>
<title>Document Title</title>
</chapter>
</doc>
------------
<!ELEMENT doc (title?, chapter+)>
<!ELEMENT chapter (title, section*)>
<!ELEMENT section (title, (para|note)*)>
<!ELEMENT title (#PCDATA)*>
<!ELEMENT note (#PCDATA)*>
<!ELEMENT para (#PCDATA)*>
<!ATTLIST chapter num ID #REQUIRED>
<!ATTLIST chapter visible (true | false) 'false'>
------------------------------------------
Je vous en remercie d'avance.
Salutations.