Article View: fr.comp.text.xml
Article #9697Problème sur une DTD
From: Simon De Chabaneix
Date: Mon, 26 Feb 2001 22:49
Date: Mon, 26 Feb 2001 22:49
30 lines
1966 bytes
1966 bytes
Bon voici le probl�me que j'ai avec ma dtd, j'ai simplement mis le morceau
qui a un probl�me. Lorsque je d�clare un �l�ment, et que je veux qu'il
puisse contenir des #PCDATA et d'autres �l�ments, le validateur m'indique
qu'il y a une erreur dans ma dtd, pouvez vous m'aider. Merci.
Voici la DTD simplifi�e.
<?xml version='1.0' encoding='UTF-8'?>
<!-- $Id$ -->
<!ELEMENT article (p+) >
<!ATTLIST article id CDATA #REQUIRED
title CDATA #REQUIRED
author CDATA #REQUIRED
date CDATA #REQUIRED
lang CDATA #REQUIRED
>
<!ELEMENT img EMPTY>
<!ATTLIST img id CDATA #REQUIRED
>
<!ELEMENT e (#PCDATA)>
<!ELEMENT cite (#PCDATA)>
<!ELEMENT p ((#PCDATA | e | cite | img | p)*)>
<!ATTLIST p count (num |token)
type (q | a)
>
Merci d'avance pour votre aide.
Technical Details
Message-ID:
<B6C09C22.861%simon@audiovisio.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,e3b1591288fd603a,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-02-26 14:50:08 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail User-Agent: Microsoft-Entourage/9.0.2509 Subject: Problème sur une DTD From: Simon De Chabaneix <simon@audiovisio.com> Newsgroups: fr.comp.text.xml Message-ID: <B6C09C22.861%simon@audiovisio.com> Mime-version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: 8bit Lines: 31 Date: Mon, 26 Feb 2001 22:49:25 GMT NNTP-Posting-Host: 212.198.165.198 X-Complaints-To: abuse@proxad.net X-Trace: nnrp2.proxad.net 983227765 212.198.165.198 (Mon, 26 Feb 2001 23:49:25 CET) NNTP-Posting-Date: Mon, 26 Feb 2001 23:49:25 CET Organization: Guest of ProXad - France