Entetes XML: 
<xsl:value-of select="php:function('init_fiches')"/> <xsl:value-of select="php:function('initcommune')"/> ----- {{Noms_communes=<xsl:value-of select="php:function('listecommunes')"/>}} {{NbFiches=<xsl:value-of select="php:function('voir_fiches')"/>}} {{sessionalea=<xsl:value-of select="LEI/Resultat/@SESSIONALEA" />}}
XSL Source: 
<xsl:value-of disable-output-escaping="yes" select="php:function('ajoutecommune',string(ADRPROD_LIBELLE_COMMUNE))"/> <xsl:value-of select="php:function('incremente_fiches')"/> <xsl:if test="php:function('affiche_dans_page',string(php:function('voir_fiches')))=1"> <div class="lei-fiche" id='{PRODUIT}'> <div class="lei-img-fiche"> <a href="{php:function('LienProduitEte', string(PRODUIT), string(NOM), string(ADRPROD_LIBELLE_COMMUNE))}"> <img id="minidiapo-{PRODUIT}" src="{php:function('urlphotoretaillee',string(CRITERES/Crit[@CLEF_CRITERE=1900421]),290)}" alt="{NOM}" title="{NOM}"/> </a> <div class="infos-sup"> <div class="miniatures"> <xsl:value-of disable-output-escaping="yes" select="php:function('miniaturesListe',string(NOM),3,'minidiapo-', string(PRODUIT),string(CRITERES/Crit[@CLEF_CRITERE=1900421]),string(CRITERES/Crit[@CLEF_CRITERE=1900603]),string(CRITERES/Crit[@CLEF_CRITERE=1900751]),string(CRITERES/Crit[@CLEF_CRITERE=1900781]),string(CRITERES/Crit[@CLEF_CRITERE=1900782]),string(CRITERES/Crit[@CLEF_CRITERE=1900861]),string(CRITERES/Crit[@CLEF_CRITERE=1900862]),string(CRITERES/Crit[@CLEF_CRITERE=1900863]),string(CRITERES/Crit[@CLEF_CRITERE=1900946]),string(CRITERES/Crit[@CLEF_CRITERE=1900947]),string(CRITERES/Crit[@CLEF_CRITERE=1900958]),string(CRITERES/Crit[@CLEF_CRITERE=1900960]),string(CRITERES/Crit[@CLEF_CRITERE=1900962]),string(CRITERES/Crit[@CLEF_CRITERE=1900964]),string(CRITERES/Crit[@CLEF_CRITERE=1900966]),string(CRITERES/Crit[@CLEF_CRITERE=1901401]))" /> </div> </div> </div> <div class="infos-ppal"> <div class="lei-nom-fiche"> <h3><xsl:value-of select="NOM"/> <!-- Etoiles hotellerie --> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1900383]"> <xsl:for-each select="CRITERES/Crit[@CLEF_CRITERE=1900383]"> <xsl:variable name="MODALITE" select="@CLEF_MODA" /> <span class="icon-lei icon-{$MODALITE}"><xsl:value-of select="/LEI/NOMENCLATURE/CRIT[@CLEF=1900383]/MODAL[@CLEF=$MODALITE]"/></span> </xsl:for-each> </xsl:if> </h3> <span class="commune"><xsl:value-of select="ADRPROD_LIBELLE_COMMUNE"/></span> <div class="commentaire-lei"><xsl:value-of select="COMMENTAIRE"/></div> <div class="infos-comple"> <a href="{php:function('LienProduitEte',string(PRODUIT), string(NOM), string(ADRPROD_LIBELLE_COMMUNE))}" class="btn btn-default btn-plus">#{#+ d'infos#}#</a> <!-- Gites de France --> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1900365]"> <xsl:value-of disable-output-escaping="yes" select="php:function('pictotaxonomy','1900365',string(CRITERES/Crit[@CLEF_CRITERE=1900365]/@CLEF_MODA))"/> </xsl:if> <!-- Clévacances --> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1900398]"> <xsl:for-each select="CRITERES/Crit[@CLEF_CRITERE=1900398]"> <xsl:variable name="MODALITE" select="@CLEF_MODA" /> <span class="icon-{$MODALITE}"><xsl:value-of disable-output-escaping="yes" select="php:function('pictotaxonomy', '1900398', string($MODALITE))"/></span> </xsl:for-each> </xsl:if> <!-- Label Logis --> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1900058]"> <xsl:for-each select="CRITERES/Crit[@CLEF_CRITERE=1900058]"> <xsl:variable name="MODALITE" select="@CLEF_MODA" /> <span class="icon-{$MODALITE}"><xsl:value-of disable-output-escaping="yes" select="php:function('pictotaxonomy', '1900058', string($MODALITE))"/></span> </xsl:for-each> </xsl:if> <!-- Chaines Hôtelières --> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1900391]"> <xsl:for-each select="CRITERES/Crit[@CLEF_CRITERE=1900391]"> <xsl:variable name="MODALITE" select="@CLEF_MODA" /> <span class="icon-{$MODALITE}"><xsl:value-of disable-output-escaping="yes" select="php:function('pictotaxonomy', '1900391', string($MODALITE))"/></span> </xsl:for-each> </xsl:if> <!-- Marque Qualité Tourisme --> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1900798 and @CLEF_MODA=1906507]"> <span class="icon-1900798"><xsl:value-of disable-output-escaping="yes" select="php:function('pictotaxonomy', '1900798', '1906507')"/></span> </xsl:if> <!-- Marque Marque vignoble et découverte --> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1901028 and @CLEF_MODA=1908146]"> <span class="icon-1901028"><xsl:value-of disable-output-escaping="yes" select="php:function('pictotaxonomy', '1901028', '1908146')"/></span> </xsl:if> <!-- Trip Advisor --> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1901390]"> <xsl:variable name="LISTE_MODA"> <xsl:for-each select="/LEI/NOMENCLATURE/CRIT[@CLEF=1901390]/MODAL"> <xsl:sort order="descending" select="@ORDRE" /> <xsl:value-of select="concat('#', @CLEF)" /> </xsl:for-each> </xsl:variable> <xsl:variable name="MODA_PROD"> <xsl:for-each select="CRITERES/Crit[@CLEF_CRITERE=1901390]"> <xsl:value-of select="concat('#', @CLEF_MODA)" /> </xsl:for-each> </xsl:variable> <xsl:if test="php:function('TripAdvisor', string($LISTE_MODA), string($MODA_PROD) ) != ''"> <xsl:variable name="MODALITE"> <xsl:value-of select="php:function('TripAdvisor', string($LISTE_MODA), string($MODA_PROD) )" /> </xsl:variable> <span class="icon-lei icon-{$MODALITE}"><xsl:value-of select="/LEI/NOMENCLATURE/CRIT[@CLEF=1901390]/MODAL[@CLEF=$MODALITE]"/></span> </xsl:if> </xsl:if> <!-- FIN Trip Advisor --> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1900536]"> <!-- Tarif € par personne + petit déjeuner Hôtels --> <div class="fiche-prix-liste"> <span class="modalite">#{#A partir de#}#</span> <span class="montant_liste">&#160;<xsl:value-of select="CRITERES/Crit[@CLEF_CRITERE=1900536 and @CLEF_MODA=1904082]"/>€</span> </div> </xsl:if> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1900533 and @CLEF_MODA=1904993]"> <!-- Tarif € par personne + petit déjeuner Chambres hotes --> <div class="fiche-prix-liste"> <span class="modalite">#{#A partir de#}#</span> <!-- <span class="montant_liste">&#160;<xsl:value-of select="CRITERES/Crit[@CLEF_CRITERE=1900533 and @CLEF_MODA=1904993]"/>€</span> --> <span class="montant_liste">&#160;<xsl:value-of select="CRITERES/Crit[@CLEF_CRITERE=1900533 and @CLEF_MODA=1904994]"/>€</span> </div> </xsl:if> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1901116]"> <xsl:for-each select="CRITERES/Crit[@CLEF_CRITERE=1901116]"> <xsl:variable name="MODALITE" select="@CLEF_MODA" /> <span class="{$MODALITE}"><xsl:value-of select="/LEI/NOMENCLATURE/CRIT[@CLEF=1901116]/MODAL[@CLEF=$MODALITE]"/></span> </xsl:for-each> </xsl:if> </div> </div> <div class="infos-resa"> <xsl:if test="CRITERES/Crit[@CLEF_CRITERE=1900825 and @CLEF_MODA=1907057]"> <div class="reserver"> <!-- <a class="btn btn-reserver" target="_blank" href="{php:function('get_link_resa_ingenie',string(NOM))}"><i class="icon calendar"></i>#{#Réserver#}#</a> --> <a class="btn btn-reserver" target="_blank" href="{CRITERES/Crit[@CLEF_CRITERE=1900825 and @CLEF_MODA=1907057]}"><i class="icon calendar"></i>#{#Réserver#}#</a> </div> </xsl:if> </div> </div> </div> </xsl:if>
Type de XSL: 
Liste