Author: chatellier Date: 2009-01-16 17:56:03 +0000 (Fri, 16 Jan 2009) New Revision: 252 Modified: jrst/trunk/src/main/resources/xsl/rst2xhtml.xsl Log: Ajout d'une balise <a> s'il y a un target sur l'image Modified: jrst/trunk/src/main/resources/xsl/rst2xhtml.xsl =================================================================== --- jrst/trunk/src/main/resources/xsl/rst2xhtml.xsl 2009-01-16 17:14:33 UTC (rev 251) +++ jrst/trunk/src/main/resources/xsl/rst2xhtml.xsl 2009-01-16 17:56:03 UTC (rev 252) @@ -241,7 +241,15 @@ </xsl:template> <xsl:template match="image"> - <img alt="{@alt}" src="{@uri}"><xsl:apply-templates/></img> + <!-- todo manage heigth and witdh --> + <xsl:if test="@target"> + <a href="{@target}"> + <img alt="{@alt}" src="{@uri}"><xsl:apply-templates/></img> + </a> + </xsl:if> + <xsl:if test="not(@target)"> + <img alt="{@alt}" src="{@uri}"><xsl:apply-templates/></img> + </xsl:if> </xsl:template>
participants (1)
-
chatellierï¼ users.labs.libre-entreprise.org