🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: xslt fabriquer un sous arbre pour pouvoir le parser à nouveau ?

#258
From: Une Bévue
Date: Thu, 16 Feb 2012 19:09
27 lines
2450 bytes
Alain Ketterlin <alain@dpt-info.u-strasbg.fr> wrote:

> Encore une fois, EXSLT a pens� � cela. La fonction exsl:node-set()
> (module common) permet de faire exactement ce qu'il te faut. Tu lui
> passes le fragment (que tu as probablement mis dans une variable) et il
> te renvoie un node-set. Tu peux ensuite appliquer tous les templates que
> tu veux.

bon, j'essaie �a, avec copy-of aussi il peut y avoir une solution.

dans l'exemple fourni :
<http://www.exslt.org/exsl/functions/node-set/exsl.node-set.html>

le template agit sur le xml source pas sur la variable.

je peux changer �a ?

en fait je ne pige pas ce que vient faire :
<xsl:variable name="tree">
<a><b><c><d/></c></b></a>
</xsl:variable>


-- 
� Les conneries c'est comme les imp�ts, 
  on finit toujours par les payer. � 
  (Michel Audiard)
Technical Details
Message-ID: <1kfkqj3.1vko5u61mlr31kN%unbewusst.sein@fai.invalid>
Path: arc1-ca.pugleaf.net!wr5ni32818pbc.0!nntp.google.com!news2.google.com!goblin1!goblin.stu.neva.ru!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!cleanfeed2-a.proxad.net!nnrp14-1.free.fr!not-for-mail
References: <4f3d3fe1$0$2244$426a74cc@news.free.fr> <874nuqacfk.fsf@dpt-info.u-strasbg.fr>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114f60,bf650aa3b5c61040
X-Google-NewGroupId: yes
X-Google-Attributes: gid8a75585569,domainid0,public,usenet
X-Google-Language: FRENCH,ASCII
Received: by 10.68.241.37 with SMTP id wf5mr4510488pbc.4.1329419368556;
        Thu, 16 Feb 2012 11:09:28 -0800 (PST)
Path: arc1-ca.pugleaf.net!wr5ni32818pbc.0!nntp.google.com!news2.google.com!goblin1!goblin.stu.neva.ru!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!cleanfeed2-a.proxad.net!nnrp14-1.free.fr!not-for-mail
Newsgroups: fr.comp.text.xml
Subject: Re: xslt fabriquer un sous arbre pour pouvoir le parser
 à nouveau ?
From: unbewusst.sein@fai.invalid (Une Bévue)
Date: Thu, 16 Feb 2012 20:09:25 +0100
Message-ID: <1kfkqj3.1vko5u61mlr31kN%unbewusst.sein@fai.invalid>
References: <4f3d3fe1$0$2244$426a74cc@news.free.fr> <874nuqacfk.fsf@dpt-info.u-strasbg.fr>
MIME-Version: 1.0
Organization: Oedipe Roi
X-Face: &pPJZaj=yETTJi[(==kP&`'Q;P^*m-|g$gyxFPnI&&}+;Ul=lZ_p6pQS!\#x]
        U4[^EN"1.E)El1acOX,9T\P2).0&^\5Fg';UzeOPF5\Su)"]oXFO9e=Z*Z4!+/</>A!Z
        GQ"IgmAM7Z%1AC9=w*Z&0:->1#.}/|4:GT1KOLp7CQkIm-ZdRm2RrCbD}|X<[VFA?]gI
        DX68liFMy#}lH<Vi'pewlEDG\>]RIKyk#]pSaJTB_RA7EY%Js^>{o)v#DZS&k#zv|Nsj
        O/aWDf\hl1+iN<IKtS%a?A:\yu;Q{.]fD%ObQgY?{2szAy_U
User-Agent: MacSOUP/F-2.8.3 (Mac OS X version 10.7.3 (x86))
Lines: 27
NNTP-Posting-Date: 16 Feb 2012 20:09:25 MET
NNTP-Posting-Host: 82.226.217.239
X-Trace: 1329419365 news-1.free.fr 2277 82.226.217.239:53776
X-Complaints-To: abuse@proxad.net
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit