🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: URGENT : CGI - XML - XSL ->HTML

#10572
From: Doeni
Date: Thu, 07 Sep 2000 17:49
39 lines
2465 bytes
"Laurent DUVIVIER" <lduvivier@nordnet.fr> writes:

> 
> Voila ma question : il est �vident que le fichier xml doit parfois refl�ter
> des informations provenant d'une base de donn�es donc g�n�rer. Est il
> possible
> d'utiliser un CGI en c par exemple ?
> (j ai essayer en mettant un content type a : text/xml -> ca marche pas !)
> 

Tout est possible avec du CGI. Un parseur XML + un processeur XSLT et
le tour est jou�.
Mais comme tu as install� JServ, tu peux aussi utiliser la XSQL
Servlet. En gros tu �crit une page XSQL :

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="emp.xsl"?>

<Emp connection="ORCL" xmlns:xsql="urn:oracle-xsql">
  <xsql:query>
    SELECT * FROM emp
  </xsql:query>
</Emp>

Ca retourne en r�sultat un document XML, auquel tu peux appliquer un
stylesheet pour faire la transformation en HTML.

Ca marche biensur contre une base Oracle, mais pour les cas simples �a
devrait aussi marcher contre une autre base (� condition d'avoir le
driver JDBC)

Ca se download de http://technet.oracle.com/tech/xml/


-- 
I am not listed on the United States Department of Treasury lists of
Specially Designated Nationals, Specially Designated Terrorists, and
Specially Designated Narcotic Traffickers, nor am I listed on the
United States Department of Commerce Table of Denial Orders. 
Technical Details
Message-ID: <878zt4ytwr.fsf@dinosaur.evhr.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!sn-xit-03!supernews.com!dispose.news.demon.net!demon!newsfeed.icl.net!newsfeeds.belnet.be!news.belnet.be!xfer13.netnews.com!netnews.com!isdnet!194.53.76.66.MISMATCH!inetway!inetway.net!not-for-mail
References: <8p7pff$pb2$1@news.nordnet.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,258d360d2cf54bc1
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2000-09-07 10:49:46 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!sn-xit-03!supernews.com!dispose.news.demon.net!demon!newsfeed.icl.net!newsfeeds.belnet.be!news.belnet.be!xfer13.netnews.com!netnews.com!isdnet!194.53.76.66.MISMATCH!inetway!inetway.net!not-for-mail
From: Doeni <doeni@evhr.net>
Newsgroups: fr.comp.text.xml
Subject: Re: URGENT : CGI - XML - XSL ->HTML
Date: 07 Sep 2000 19:49:08 +0200
Organization: Ni dieu ni b�te
Message-ID: <878zt4ytwr.fsf@dinosaur.evhr.net>
References: <8p7pff$pb2$1@news.nordnet.fr>
NNTP-Posting-Host: cm157-4.evhr.net
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: reader1.fr.uu.net 968349674 26754 212.94.195.157 (7 Sep 2000 18:01:14 GMT)
X-Complaints-To: abuse@fr.uu.net
NNTP-Posting-Date: 7 Sep 2000 18:01:14 GMT
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Carlsbad Caverns)
Lines: 39