🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9644

XInclude

#9644
From: Christine Delcroix
Date: Tue, 20 Feb 2001 09:55
30 lines
1688 bytes
Est ce qu'on peut inclure un document XML dans un autre document XML ?

A priori, je dirais que XInclude sert � ca, mais quelle est la syntaxe ?

Merci de vos r�ponses

jl


La notion d'entit� d�finie dans le Document Type Definition peut servir
ce but. En effet, voici un petit exemple :

<? xml version="1.0"?>
<!DOCTYPE bouquin [
<!ENTITY chapitre-1 SYSTEM "./chap1.xml" >
<!ENTITY chapitre-2 SYSTEM "./chap2.xml" >
]>
<bouquin>
   <titre>XML par la joie </titre>
   &chapitre-1;
   &chapitre-2;
</bouquin>

Les entit�s doivent �tre vues comme des abbr�viations d'un contenu qui
peut soit �tre contenu dans un fichier (c'est le cas ici), soit �tre
�crit explicitement (ex. <!ENTITY lt "<">). Le contenu peut �tre soit de
nature XML (c'est le cas ici), soit d'un autre format (ex. : image,
audio, ...). Dans ce cas, il faut �galement en d�finir une notation.

Christine.
Technical Details
Message-ID: <3A923EFC.82B636B3@info.fundp.ac.be>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!news.fundp.ac.be!newsmaster

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,465f579cc49fb6e6
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-02-20 02:23:29 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!news.fundp.ac.be!newsmaster
From: Christine Delcroix <cde@info.fundp.ac.be>
Newsgroups: fr.comp.text.xml
Subject: XInclude
Date: Tue, 20 Feb 2001 10:55:08 +0100
Organization: FUNDP, Namur, Belgium
Lines: 30
Message-ID: <3A923EFC.82B636B3@info.fundp.ac.be>
NNTP-Posting-Host: bush.info.fundp.ac.be
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Mailer: Mozilla 4.7 [en] (Win98; U)
X-Accept-Language: en