🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#9835
From: Alain Ketterlin
Date: Thu, 08 Feb 2001 09:55
24 lines
1595 bytes

Goude morningue Sebastien,

> I am a beginner in XSL. I would like to convert XML document into another 
> XML document using XSL. The only transformation is to do
> 
> <name>value<name/> INTO <data elem="name">value</data>
> 
> for all tags in incoming XML. How can I do this ?

iou coude traille daisse tamplaite :

<xsl:template match="*">
  <data elem="{name()}"><xsl:apply-templates/></data>
</xsl:template>

batte aillemeux note choure it ize vairille iouzefoule.

-- Alain.

P/S: comme fr.comp.text.xml est un groupe francais, j'essaie de
respecter a la fois la charte et la langue du correspondant. (il n'y a
pas de moquerie, ton anglais est tres bon).
Technical Details
Message-ID: <wyvgqlh52i.fsf@polya.u-strasbg.fr>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!isdnet!ciril.fr!news.u-strasbg.fr!not-for-mail
References: <F82OXwHyqk4hPO1eVGi00013fb4@hotmail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII-7-bit
X-Google-Thread: 114f60,b9bab05ef535c4ba
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-02-08 02:00:03 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!isdnet!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: XSL : how to turn <name> into <data elem="name">
Date: 08 Feb 2001 10:55:33 +0100
Organization: CRC - Universite Louis Pasteur Strasbourg France
Lines: 24
Message-ID: <wyvgqlh52i.fsf@polya.u-strasbg.fr>
References: <F82OXwHyqk4hPO1eVGi00013fb4@hotmail.com>
NNTP-Posting-Host: polya.u-strasbg.fr
X-Trace: news.u-strasbg.fr 981630551 4102 130.79.6.19 (8 Feb 2001 11:09:11 GMT)
X-Complaints-To: usenet@u-strasbg.fr
NNTP-Posting-Date: 8 Feb 2001 11:09:11 GMT
X-Newsreader: Gnus v5.6.45/XEmacs 21.1 - "Capitol Reef"