Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
6237 connectés 

  FORUM HardWare.fr
  Programmation
  XML/XSL

  xsl:key pb utilisation d'une variable dans le match

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

xsl:key pb utilisation d'une variable dans le match

n°963811
beaumije
Posté le 27-01-2005 à 15:49:29  profilanswer
 

bonjour,
 
j'ai une page xsl qui utilise l'élément xsl:key
je veux externaliser certains chemins dans un fichier parametre xml mais ça pose problème sur cet élément car je n'arrive pas à utiliser une variable dans le match d'un xsl:key.
 
le code qui marche

Code :
  1. <xsl:key name="nomfield1" match="/root/fxf/report[target/@destination='FREQU171']/column_desc/col" use="@fieldname" />


et celui qui ne marche pas  

Code :
  1. <xsl:variable name="vpath" select="/root/fxf/report[target/@destination='FREQU171']/column_desc" />
  2. <xsl:key name="nomfield1" match="$vpath/col" use="@fieldname" />


il ne semble pas accepter le fait d'utiliser une variable.
avez-vous une idée pour résoudre mon problème ?
merci d'avance

mood
Publicité
Posté le 27-01-2005 à 15:49:29  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  XML/XSL

  xsl:key pb utilisation d'une variable dans le match

 

Sujets relatifs
probleme avec variableVariable dans boucle VBA Excel
pb perte initialisation variable C++Modification de variable passée en paramètre (question de noob)
[ansi] utilisation de types ou structures définis ailleurs ...variable path sous xp
CSS variable[ColdFusion] recréer une variable par concaténation
[Java] Utilisation en multiprocesseurUtilisation de Group By
Plus de sujets relatifs à : xsl:key pb utilisation d'une variable dans le match


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)