<xsl:template match="asset">
<xsl:choose>
<xsl:when test="@media_type='img'">
<center><img>
<xsl:attribute name="hspace">5</xsl:attribute>
<xsl:attribute name="vspace">5</xsl:attribute>
<xsl:if test="location=ends-with('_e.gif')">
<xsl:attribute name="src">../../images/e/<xsl:value-of select="translate(location,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')" /></xsl:attribute>
</xsl:if>
<xsl:else>
<xsl:attribute name="src">../../images/<xsl:value-of select="translate(location,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')" /></xsl:attribute>
</xsl:else>
<xsl:attribute name="align">center<!--xsl:apply-templates select="@align"/--></xsl:attribute>
</img></center>
</xsl:when>
</xsl:choose>
</xsl:template>
Partager