🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

transformer une string en expression xpath ?

#371
From: Une Bév ue
Date: Sat, 16 Feb 2008 11:44
26 lines
1832 bytes
dans ma feuille xsl, j'ai :
<pseudo_group:name xpath="/xCard/vCard">Tout</pseudo_group:name>
<pseudo_group:name xpath="/xCard/vCard[not(GRP)]">Sans
groupe</pseudo_group:name>
[...]

et je souhaiterais utiliser @xpath non comme une string mais comme
expression xpath dans un select par exemple.

en bref, associer � un "nom" (string) quelconque, une expression xpath
???
est-ce possible ?

contre-exemple :
<xsl:variable name="tout" select="/xCard/vCard" />
<xsl:variable name="sans_groupe" select="/xCard/vCard[not(GRP)]" />
ne me convient pas vraiment sauf s'il est possible d'associer �, par
exemple, $tout, par ailleurs, la string "Tout" etc...

but de la manip:

pouvoir boucler sur mes "pseudo_group" sans passer par un test sur le
nom du groupe qui d�finirait l'expression xpath...
-- 
Une B�vue
Technical Details
Message-ID: <1icatgj.xom4hmv4cfehN%unbewusst.sein@weltanschauung.com.invalid>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!nocworld.net!talisker.lacave.net!lacave.net!unbewusst.sein

Show Full Headers
Complete Article Headers
X-Google-Thread: 114f60,7227a4d08bc61435,start
X-Google-Attributes: gid114f60,public,usenet
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!nocworld.net!talisker.lacave.net!lacave.net!unbewusst.sein
From: unbewusst.sein@weltanschauung.com.invalid (Une Bévue)
Newsgroups: fr.comp.text.xml
Subject: transformer une string en expression xpath ?
Date: Sat, 16 Feb 2008 12:44:29 +0100
Organization: Service de news de lacave.net
Lines: 26
Message-ID: <1icatgj.xom4hmv4cfehN%unbewusst.sein@weltanschauung.com.invalid>
NNTP-Posting-Host: dyn-88-121-2-42.ppp.tiscali.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: talisker.lacave.net 1203162362 43867 88.121.2.42 (16 Feb 2008 11:46:02 GMT)
X-Complaints-To: abuse@lacave.net
NNTP-Posting-Date: Sat, 16 Feb 2008 11:46:02 +0000 (UTC)
User-Agent: MacSOUP/F-2.8.2 (Mac OS X version 10.4.11 (PPC))