🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: XSL : how to turn <name> into <data elem="name">

#9842
From: Joseph Vallot
Date: Thu, 08 Feb 2001 10:57
33 lines
1388 bytes
Sebastien NOEL a �crit :
> 
> Hello everyone,

(hmmm... fctx est francophone ;)

> 
> <name>value<name/> INTO <data elem="name">value</data>

cf <http://www.w3.org/TR/xslt>


de t�te :


<!-- on adaptera le 'match' pour ne s�lectionner que les noeuds desires
-->
<xsl:template match="//*"> 
	<data>
		<xsl:attribute name="elem">
			<xsl:value-of select="name()">
		</xsl:attribute>
		<xsl:value-of select="."/>
	</data>
</xsl:template>

 
> 
> Thank in advance,

padcoi
-- 
Joseph
Technical Details
Message-ID: <3A827BA8.E2AE8AFC@axime-is.fr>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!univ-lyon1.fr!pasteur.fr!oleane.net!oleane!neptune.axime-is.fr!usenet
References: <F82OXwHyqk4hPO1eVGi00013fb4@hotmail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,b9bab05ef535c4ba
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-02-08 07:00:25 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!univ-lyon1.fr!pasteur.fr!oleane.net!oleane!neptune.axime-is.fr!usenet
From: Joseph Vallot <jv@axime-is.fr>
Newsgroups: fr.comp.text.xml
Subject: Re: XSL : how to turn <name> into <data elem="name">
Date: Thu, 08 Feb 2001 11:57:44 +0100
Organization: AtosEuronext
Lines: 33
Message-ID: <3A827BA8.E2AE8AFC@axime-is.fr>
References: <F82OXwHyqk4hPO1eVGi00013fb4@hotmail.com>
Reply-To: jvallot@atoseuronext.net
NNTP-Posting-Host: 160.92.129.2
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Mailer: Mozilla 4.6 [fr] (WinNT; I)
X-Accept-Language: fr