Article View: fr.comp.text.xml
Article #134Re: compter avec une requête Xpath
From: YgoogleY
Date: Wed, 02 Dec 2009 10:44
Date: Wed, 02 Dec 2009 10:44
44 lines
2343 bytes
2343 bytes
> On 2 déc, 07:37, xmlizer <xmli...@gmail.com> wrote: > > Pourquoi ne pas faire cette transformation en XSLT ? > J'ai essayé de me remettre à XSLT, notamment à l'aide du site http://www.w3schools.com/xml/default.asp J'ai compris comment re-créer un document XML grâce à XSLT mais je ne vois pas comment je peux fermer une balise comme je le souhaiterai. C'est à dire, en partant de ce document XML <Dataroot> <Niv1> <Niv2> <Niv3>data x</Niv3> </Niv2> <Niv2> <Niv3>data y</Niv3> </Niv2> </Niv1> </Dataroot> Arriver à celui-ci <Dataroot> <Niv1> <Niv2> <Niv3>data x</Niv3> </Niv2> </Niv1> <Niv1> <Niv2> <Niv3>data y</Niv3> </Niv2> </Niv1> </Dataroot> En français, à chaque fois que je vois une balise <Niv2> je veux insérer une balise juste avant </Niv1> et une balise <Niv1> ? Merci de votre aide
Technical Details
Message-ID:
<eae16e75-c0ae-4065-8f51-a13ebe2df86b@a21g2000yqc.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!a21g2000yqc.googlegroups.com!not-for-mailReferences:
<5c0a53db-c629-4c3a-affe-bd2fd90b0ff6@k19g2000yqc.googlegroups.com> <255ac929-0e14-41f1-959c-b7c27fd27350@k17g2000yqh.googlegroups.com> <0bf1b4ce-958b-4080-b168-6612c7181c38@p8g2000yqb.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 8a75585569,e549ae3bf9b5c171 X-Google-Attributes: gid8a75585569,public,usenet X-Google-NewGroupId: yes X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!a21g2000yqc.googlegroups.com!not-for-mail From: YgoogleY <jrmaub@gmail.com> Newsgroups: fr.comp.text.xml Subject: Re: compter avec une requête Xpath Date: Wed, 2 Dec 2009 02:44:12 -0800 (PST) Organization: http://groups.google.com Lines: 44 Message-ID: <eae16e75-c0ae-4065-8f51-a13ebe2df86b@a21g2000yqc.googlegroups.com> References: <5c0a53db-c629-4c3a-affe-bd2fd90b0ff6@k19g2000yqc.googlegroups.com> <255ac929-0e14-41f1-959c-b7c27fd27350@k17g2000yqh.googlegroups.com> <0bf1b4ce-958b-4080-b168-6612c7181c38@p8g2000yqb.googlegroups.com> NNTP-Posting-Host: 195.101.25.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1259750769 23956 127.0.0.1 (2 Dec 2009 10:46:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 2 Dec 2009 10:46:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a21g2000yqc.googlegroups.com; posting-host=195.101.25.1; posting-account=g8x9zQkAAADQSjmth_ErYE4pgHRBmIZ1 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)