Article View: fr.comp.text.xml
Article #10382Re: Comment faire un element avec un attribut ?
From: Tom
Date: Mon, 06 Nov 2000 00:00
Date: Mon, 06 Nov 2000 00:00
23 lines
1186 bytes
1186 bytes
In article <jHBN5.1992$9d2.2589744@nnrp5.proxad.net>, "Rapha�l THERY"
<raphael.thery@nordnet.fr> wrote:
> Je souhaite cr�er un noeud avec la valeur d'un des attributs .... dur
> dur je ne sais comment prendre le xsl:element
>
> Explication XML source :
> <objet nom="nomObjet" .....>
> ...
> </objet>
>
> XML resultat
> <nomObjet> .... </nomObjet>
>
> Ca � l'air pourtant simple !!!
<xsl:template match="objet">
<xsl:element name="{@nom}">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
je suppose
Technical Details
Message-ID:
<5617u8.qn4.ln@ptittom.free.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<jHBN5.1992$9d2.2589744@nnrp5.proxad.net>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,e516a45ce554018c X-Google-Attributes: gid114f60,public From: "Tom" <ptittom@free.fr> Subject: Re: Comment faire un element avec un attribut ? Date: 2000/11/06 Message-ID: <5617u8.qn4.ln@ptittom.free.fr> X-Deja-AN: 690400711 References: <jHBN5.1992$9d2.2589744@nnrp5.proxad.net> X-Complaints-To: abuse@proxad.net X-No-Productlinks: Yes X-Trace: nnrp1.proxad.net 973540534 213.228.43.243 (Mon, 06 Nov 2000 20:55:34 MET) Organization: Guest of ProXad - France User-Agent: Pan/0.9.1 (Unix) NNTP-Posting-Date: Mon, 06 Nov 2000 20:55:34 MET Newsgroups: fr.comp.text.xml