1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<xsl:element name="img">
<xsl:attribute-set name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="Photos existe">
<xsl:value-of select="ton fichier image"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="img/toto.jpg"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="ta valeur alt"/>
</xsl:attribute>
<xsl:attribute name="width">
<xsl:value-of select="ta valeur width"/>
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="ta valeur height"/>
</xsl:attribute>
</xsl:attribute-set>
</xsl:element> |