🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Probl�me avec <xsl:variable

#10290
From: Pierre-Yves Renaud de la Faverie
Date: Fri, 17 Nov 2000 00:00
77 lines
2672 bytes
> Des malles, des valises, �a sent le d�part en WE, tout �a :))))
> S�rieusement, si tu pouvais �tre plus pr�cis et donner un exemple o� �a ne
> marche pas, �a serait plus simple pour te r�pondre.
> Merci !


Pour le weekend �a me travail de plus en plus...


<?xml version='1.0'?>
<!--  Comment transformer un document xml en html
  Possible seulement si le browser supporte le XML-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">              <!--declaration du modele concernant
le root du doc-->

 <html>

<script type="JavaScript">
</script>
   <body>

    <xsl:for-each select="PageAffaire">

 <TITLE><xsl:value-of select="Titre"/></TITLE>         <!--on entre dans le
noeud PageAffaire-->
   <h2><xsl:value-of select="Titre"/></h2>
   <P/>
  <P/>
      <i>Voici une autre pr�sentation possible.</i>
 <P/>
  <P/>
 <table border="1" align="center" bgcolor="white"  width="70%" >
 <tr>
    <td bgcolor="blue">Num�ro</td>
    <td bgcolor="blue">Nom</td>
      <td bgcolor="blue">Client</td>
      <td bgcolor="blue">Responsable</td>
   </tr>
 <xsl:for-each select="ListeAffaire/Contrat" >

 <xsl:variable name="num" select="@numero"/>
<------------------------------ici

    <tr>
    <td><xsl:value-of select="@numero"/>   </td>
    <td><I><xsl:value-of select="Libelle"/></I></td>
      <td><B><xsl:value-of select="Client"/></B></td>
      <td><xsl:value-of select="Responsable"/></td>
    <td><input type="checkbox"  name="$num" ></input></td>
   </tr>

 </xsl:for-each>
 </table>
 </xsl:for-each>
 <p/>
 <p/>
 Demande d'information sur les affaires coch�es:
 <p/>
 <input type="button" value="Renseignement" onclick="alert ('Pas encore
implant�!');"></input>

</body>
  </html>

</xsl:template>
</xsl:stylesheet>

Selon la recommandatio je peux placer cette balise ici. Je l'ai d'ailleurs
vu dans d'autres exemples.
Pourtant que ce soit � cet endroit ou � un autre je re�ois toujours la m�me
erreur.

Merci d'avance
Technical Details
Message-ID: <3a155cd6@news.euriware>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3a1550ea$1@news.euriware> <3A15550E.302EC28C@none.net>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,eb851041a1659692
X-Google-Attributes: gid114f60,public
From: "Pierre-Yves Renaud de la Faverie" <pyrenaud@ifatec.fr>
Subject: Re: Probl�me avec <xsl:variable
Date: 2000/11/17
Message-ID: <3a155cd6@news.euriware>
X-Deja-AN: 694791947
References: <3a1550ea$1@news.euriware> <3A15550E.302EC28C@none.net>
X-Original-NNTP-Posting-Host: 172.18.8.128
X-Trace: 17 Nov 2000 17:29:10 +0100, 172.18.8.128
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: fr.comp.text.xml
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400