🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: XML, des sensations...euh...bien

#9443
From: Tom.
Date: Fri, 06 Apr 2001 12:10
49 lines
2477 bytes
In <9ak6p9$afr$1@wanadoo.fr>, Louis wrote:

Vous regardez trop la t�l�vision, bonsoir.

> Alors voila : je dispose d'un fichier XML de la structure suivante :
> 
> <?xml version="1.0"?>
> <ARTICLES>
>     <ARTICLE>
>         <IDENTIFIANT></IDENTIFIANT>
>         <AUTEUR></AUTEUR>
>         <DATE></DATE>
>         <TYPE></TYPE>
>         <INDEX></INDEX>
>         <CONTENU>
>             <SUR_TITRE></SUR_TITRE>
>              <TITRE></TITRE>
>             <CHAPEAU></CHAPEAU>
>             <TEXTE_COURANT></TEXTE_COURANT>
>             <SOUS_TITRE></SOUS_TITRE>
>             <TEXTE_COURANT></TEXTE_COURANT>
>         </CONTENU>
>     </ARTICLE>
> ......
> </ARTICLES>
> 
> Je voudrais �tre � m�me :
> 1) d'effectuer des recherches par mots-clef dans les champ les plus
> communs (auteur,titre)

En attendant XML Query, c'est XPath qui va �tre ton copain.
<http://www.w3.org/TR/xpath>
les fonctions contains(), etc. entre autres

Si j'�tais toi, je ferai plut�t :
 � un "d�coupage" de AUTEUR avec nom (a priori un seul), pr�nom
   (�ventuellement plusieurs), on pourra directement utiliser le test
   d'�galit� plut�t que chercher dans le contenu
 � un �l�ment mots-cl�s "d�coup�" en �l�ments mot-cl�

> 2) D'afficher le r�sultat de ces recherches dans une page HTML (ou tout
> autre format visible dans un browser)

Toujours pareil, sans XML Query, c'est XSLT qui s'y colle.
<http://www.w3.org/TR/xslt>

A'tchao bon dimanche

Tom.
Technical Details
Message-ID: <1634097.uQJadu78lj@ltgt.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!proxad.net!feeder2.proxad.net!nnrp4.proxad.net.POSTED!not-for-mail
References: <9ak6p9$afr$1@wanadoo.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,6809168fbf720f62
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-04-06 05:10:46 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!proxad.net!feeder2.proxad.net!nnrp4.proxad.net.POSTED!not-for-mail
Message-ID: <1634097.uQJadu78lj@ltgt.net>
From: Tom. <ptittom+news@free.fr>
Subject: Re: XML, des sensations...euh...bien
Newsgroups: fr.comp.text.xml
References: <9ak6p9$afr$1@wanadoo.fr>
Lines: 49
Organization: </>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
Date: Fri, 06 Apr 2001 12:10:44 GMT
NNTP-Posting-Host: 193.252.183.232
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp4.proxad.net 986559044 193.252.183.232 (Fri, 06 Apr 2001 14:10:44 CEST)
NNTP-Posting-Date: Fri, 06 Apr 2001 14:10:44 CEST