xml pourquoi ca marche pas ca ,?

xml pourquoi ca marche pas ca ,? - Programmation

Marsh Posté le 17-07-2002 à 15:46:15    

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
Reply

Marsh Posté le 17-07-2002 à 15:46:15   

Reply

Marsh Posté le 17-07-2002 à 15:56:09    

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

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed