Bonjour tout le monde,
 
j'ai un petit problème avec une génération de page HTML à partir
de fichiers xml et xsl, en utilisant xslt de Php:
 
Tout se passe bien, mais lorsque je veux réaliser des liens avec paramètres, j'ai systématiquement une erreur de syntaxe à cause du '&' contenu dans le lien.
 
Voici le code:
 
Code :
 - <?xml version="1.0"?>
 - <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
 - <xsl:param name='posteName' />
 - <xsl:template match="TABLE">
 -    <TABLE width="100%" cellpadding="0" cellspacing="2">
 -      <TR>
 -         <TD bgcolor ="#006699"><font face="Verdana" color="#ffffff"><small><strong>Code</strong></small></font></TD>
 - 	<TD bgcolor ="#006699"><font face="Verdana" color="#ffffff"><small><strong>Nom</strong></small></font></TD>
 - 	<TD bgcolor ="#006699"><font face="Verdana" color="#ffffff"><small><strong>Site</strong></small></font></TD>
 -      </TR>
 -  
 -  <xsl:for-each select="Agence[(contains(@Code,$posteName))]">
 -  <xsl:sort select='@Code' />
 -      <TR>
 - 	<TD><font face="Verdana" color="#8080C0"><small><strong><A href="agences.php?fichier_xsl=detail.xsl&posteName={@Code}">
 -   <xsl:value-of select='@Code'/></A></strong></small></font></TD>
 - 	<TD><font face="Verdana" color="#8080C0"><small><strong><xsl:value-of select='@Nom'/></strong></small></font></TD>
 - 	<TD><font face="Verdana" color="#8080C0"><small><strong><xsl:value-of select='@Site'/></strong></small></font></TD>
 -      </TR>
 -  </xsl:for-each>
 - </TABLE>
 - </xsl:template>
 - </xsl:stylesheet>
 
  | 
 
Quelqu'un aurait-il une astuce pour contourner ce problème ?
 
Merci d'avance.
 
 ---------------
			
[ Canon EOS 30D ] (Grip + Canon 50mm f/1.4 + Canon 18-55mm USM + Tamron 70-300mm Di LD Macro)  [Galerie perso]