🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Question bete mais quand meme

#10057
From: Alain Ketterlin
Date: Tue, 09 Jan 2001 14:42
28 lines
1734 bytes
"Rapha�l THERY" <raphael.thery@nordnet.fr> writes:

> Dans la mesure o� c'est dans la feuille XML que l'on r�f�rence la feuille
> XSL (et non le contraire)
> comment faire pour obtenir plusieurs "rendus" d'un m�me flux XML dans un
> environnement comme Cocoon ?

Personnellement, je fais :

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="f1.xsl" type="text/xsl"?>
<?cocoon-process type="xslt"?>
<!DOCTYPE wrapper SYSTEM "machin.dtd" [
  <!ENTITY texte SYSTEM "data.xml">
]>
<wrapper>&texte;</wrapper>


ET comme ca pour chaque feuille... Ca a plusieurs inconvenients :

1. On ne peut pas avoir de DOCTYPE dans data.xml
2. Le cache de Cocoon a des petits problemes avec les entites

et surement d'autres. Il semble que Cocoon2 va regler tout ca.

Une autre solution est d'utiliser le processeur XInclude.

-- Alain.
Technical Details
Message-ID: <wyk884n5wq.fsf@polya.u-strasbg.fr>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!ciril.fr!news.u-strasbg.fr!not-for-mail
References: <ocE66.324$EE7.1119422@nnrp2.proxad.net>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,a1dc7ca1ff68add1
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-01-09 06:43:18 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!ciril.fr!news.u-strasbg.fr!not-for-mail
From: Alain Ketterlin <alain@dpt-info.u-strasbg.fr>
Newsgroups: fr.comp.text.xml
Subject: Re: Question bete mais quand meme
Date: 09 Jan 2001 15:42:29 +0100
Organization: CRC - Universite Louis Pasteur Strasbourg France
Lines: 28
Message-ID: <wyk884n5wq.fsf@polya.u-strasbg.fr>
References: <ocE66.324$EE7.1119422@nnrp2.proxad.net>
NNTP-Posting-Host: polya.u-strasbg.fr
X-Trace: news.u-strasbg.fr 979055682 13800 130.79.6.19 (9 Jan 2001 15:54:42 GMT)
X-Complaints-To: usenet@u-strasbg.fr
NNTP-Posting-Date: 9 Jan 2001 15:54:42 GMT
X-Newsreader: Gnus v5.6.45/XEmacs 21.1 - "Capitol Reef"