🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [XSLT]: transformation d'une string XML

#9740
From: Alain Ketterlin
Date: Tue, 13 Feb 2001 14:51
25 lines
1712 bytes
Daniel Exertier <Daniel.Exertier@lcr.thomson-csf.com> writes:

> Mon �l�ment a la forme suivante:
> 
> ...
>   <SomeElement>
>     &lt;Tag1&gt;
>       &lt;Tag2 name="NameA" value="ValueA"/&gt;
>       &lt;Tag2 name="NameB" value="ValueB"/&gt;
>     &lt;/Tag1&gt;
>   </SomeElement>
> ...
> 
> Existe-t-il une mani�re directe et peu co�teuse voir cette cha�ne comme
> une arborescence XML de mani�re � y applique une transformation XSLT ?

Non. Le seul moyen est d'utiliser un parser sur la chaine, pour
reconstruire un element. Pas vraiment peu couteux. Et surtout pas
standard.

Cela dit, je pense que l'erreur est en amont. Il n'y a aucune raison
d'avoir du texte comme ca (visiblement resultat d'une transformation
XML->texte), surtout si c'est pour le reconvertir en XML apres.

-- Alain.
Technical Details
Message-ID: <wyn1bqocue.fsf@polya.u-strasbg.fr>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!ciril.fr!news.u-strasbg.fr!not-for-mail
References: <3A893FCD.A4EA7682@lcr.thomson-csf.com>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,4f1f7ec128b1d76b
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-02-13 06:58:06 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!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: [XSLT]: transformation d'une string XML
Date: 13 Feb 2001 15:51:37 +0100
Organization: CRC - Universite Louis Pasteur Strasbourg France
Lines: 25
Message-ID: <wyn1bqocue.fsf@polya.u-strasbg.fr>
References: <3A893FCD.A4EA7682@lcr.thomson-csf.com>
NNTP-Posting-Host: polya.u-strasbg.fr
X-Trace: news.u-strasbg.fr 982080332 5645 130.79.6.19 (13 Feb 2001 16:05:31 GMT)
X-Complaints-To: usenet@u-strasbg.fr
NNTP-Posting-Date: 13 Feb 2001 16:05:31 GMT
X-Newsreader: Gnus v5.6.45/XEmacs 21.1 - "Capitol Reef"