Article View: fr.comp.text.xml
Article #9910Xlink et DTD
From: oscar
Date: Tue, 23 Jan 2001 15:14
Date: Tue, 23 Jan 2001 15:14
49 lines
2178 bytes
2178 bytes
Bonjour,
Je commence en XML, et j'ai besoin de cr�er des liens. Je voudrais ins�rer le
code du lien dans mon fichier DTD ou cr�er un fichier Sch�ma. voici un fragment
de ma DTD:
<!ELEMENT lien (#PCDATA)>
<!ATTLIST lien
xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink/namespace/"
xlink:href CDATA #REQUIRED
xlink:type CDATA #FIXED "simple"
xlink:show CDATA #FIXED "onrequest"
xlink:actuate CDATA #FIXED "embed"
>
et dans mon fichier xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="guide.css"?>
<!DOCTYPE page SYSTEM "guide.dtd">
<page xmlns:xlink="http://www.w3.org/2000/xlink" >
...
...
<tablefin>
<lien xlink:href="truc.html">Page d'accueil</lien>
</tablefin>
</page>
Et voici l'erreur engendr�e:
"R�f�rence � un pr�fixe d'espace de noms non d�clar� : xlink. Ligne 4, Position
1
<page xmlns:xlink="http://www.w3.org/2000/xlink" >
^"
Il manque quelque chose quelque part...
Merci,
PS: j'ai aussi un probl�me pour faire apparaitre les images, mais chaque chose
en son temps...
__________________________________________________________
Ce message a �t� post� via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr
http://forums.club-internet.fr/
Technical Details
Message-ID:
<2001123-151230-508553@foorum.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!isdnethub!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,deed4d087f6eaefd,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-01-23 07:16:01 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!isdnethub!not-for-mail From: oscar <s.suraud@symphonieonline.com> Newsgroups: fr.comp.text.xml Subject: Xlink et DTD Date: 23 Jan 2001 15:14:41 GMT Lines: 49 Message-ID: <2001123-151230-508553@foorum.com> NNTP-Posting-Host: 195.200.116.59 X-Trace: news4.isdnet.net 980262881 13702 195.200.116.59 (23 Jan 2001 15:14:41 GMT) X-Complaints-To: abuse@isdnet.net NNTP-Posting-Date: 23 Jan 2001 15:14:41 GMT X-Originating-Host: 195.115.72.36 X-Originating-User: 195.115.72.36 X-NNTP-Posting-Host: 195.115.72.36 X-Complaints-To2: abuse@foorum.fr