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

  FORUM HardWare.fr
  Programmation

  xml pourquoi ca marche pas ca ,?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

xml pourquoi ca marche pas ca ,?

n°177927
swich
snps
Posté le 17-07-2002 à 15:46:15  profilanswer
 

Code :
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:template match="CATALOGUE">
  4. <html>
  5. <body>
  6. <form>
  7.  <select ID="la_marque">
  8.   <option Name='audi'>AUDI</option>
  9.   <option Name='citroen'>CITROEN</option>
  10.   <option Name='renault'>RENAULT</option>
  11.   <option Name='porsche'>PORCHE</option>
  12.   <option Name='ferrari'>Ferrari</option>
  13.   <option Name='bmw'>BMW</option>
  14.  </select>
  15. </form>
  16. <xsl:for-each select="voiture[marque='la_marque']">
  17. <xsl:value-of select="marque"/> -
  18. <xsl:value-of select="model"/><br/>
  19. </xsl:for-each>
  20. </body>
  21. </html>
  22. </xsl:template>
  23. </xsl:stylesheet>


Code :
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="affich.xsl" type="text/xsl"?>
  3. <CATALOGUE>
  4. <voiture>
  5. <marque>renault </marque>
  6. <model> r5</model>
  7. </voiture>
  8. <voiture>
  9. <marque>peugeot</marque>
  10. <model> 205</model>
  11. </voiture>
  12. <voiture>
  13. <marque>citroen</marque>
  14. <model> saxo</model>
  15. </voiture>
  16. </CATALOGUE>


 
en fait ca devrait me permettre d'afficher que les vehicule de la marque choisie


Message édité par swich le 17-07-2002 à 16:14:11
mood
Publicité
Posté le 17-07-2002 à 15:46:15  profilanswer
 

n°177951
swich
snps
Posté le 17-07-2002 à 15:56:09  profilanswer
 

non j'ai corrige qq pb , mais ca plante tjx
comment faire pour actualiser la page en choisissant l'item ds la liste ?


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

  xml pourquoi ca marche pas ca ,?

 

Sujets relatifs
[MFC] CToolBar et CToolBarCtrl, comment ça marche ?Marche pas JMStudio pour faire du RTSP !! HELP
la fonction mail () en local marche elle ?[Delphi] Active X (media player), qui marche paaaas..... help SVP
[PHP] Pourquoi ca marche po !!!???Comment ca marche ca??? .htaccess (C un fichier texte?)
programmateur de carte a puce : comment ca marche ???CGI et C ... pourquoi ça marche pas ???
PHP/MySQL : comment faire une requète sur deux bases ?[ca marche][DLL, C] Comment ça marche ce bordel à roulette ?
Plus de sujets relatifs à : xml pourquoi ca marche pas ca ,?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR