Article View: fr.comp.text.xml
Article #8943Grouping ... ?
From: nusa
Date: Fri, 29 Jun 2001 21:42
Date: Fri, 29 Jun 2001 21:42
40 lines
2020 bytes
2020 bytes
Salut,
J'ai une petite question concernant XSLT.
La source est la suivante :
<?xml version="1.0"?>
<topic>
<element1>text1</element1>
<element2>text2</element2>
<element3>text3</element3>
<element4>text4</element4>
<element1>text1</element1>
<element2>text2</element2>
<element3>text5</element3>
<element4>text6</element4>
</topic>
et que je voudrais transformer en :
<?xml version="1.0"?>
<topic>
<element1>text1</element1>
<element2>text2</element2>
<element3>text3</element3>
<element4>text4</element4>
<element3>text5</element3>
<element4>text6</element4>
</topic>
Comme vous avez remarque, les elements commun sont <element1> et <element2>.
Mes questions sont :
1. puisque je suis debutant en XSLT, comment je dois l'ecrire ?
2. est-il possible d'inserer une ou plus d'une tabulation pour un certain
element ? Comme le resultat ci-desus montre, <element1> a 1 tab ( 4
caracteres ) mais <element3> a 2 tabulations ( 8 caracteres ).
Merci de pouvoir m'aider.
Benoit Aumars.
Technical Details
Message-ID:
<993847331.861272@dionysos>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!freenix!fr.clara.net!heighliner.fr.clara.net!diablo.netcom.net.uk!netcom.net.uk!dispose.news.demon.net!demon!newspeer.clara.net!news.clara.net!dionysos.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII-7-bit X-Google-Thread: 114f60,a008eea4028c313d,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-06-29 13:52:00 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!freenix!fr.clara.net!heighliner.fr.clara.net!diablo.netcom.net.uk!netcom.net.uk!dispose.news.demon.net!demon!newspeer.clara.net!news.clara.net!dionysos.POSTED!not-for-mail From: nusa <maheswara@freeuk.com> Subject: Grouping ... ? Newsgroups: fr.comp.text.xml Date: Fri, 29 Jun 2001 22:42:52 +0100 Lines: 40 User-Agent: KNode/0.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Organization: clara.net http://www.clara.net/ Message-ID: <993847331.861272@dionysos> NNTP-Posting-Host: 212.126.156.38 Lines: 40 X-Complaints-To: abuse@clara.net X-Trace: c4e01004db080061764706a4ec017038626ee33c9628575471fa518a3b3ce824