Commit 1bbecf32 authored by WalkingDexter's avatar WalkingDexter Committed by atymchuk

Issue #3048969 by, WalkingDexter: Add image title and caption to XSL

parent a0bc5479
......@@ -172,24 +172,20 @@
<xsl:variable name="image_location">
<xsl:value-of select="image:loc"/>
<xsl:variable name="image_title">
<xsl:value-of select="image:title"/>
<a href="{$image_location}">
<a href="{$image_location}" title="{$image_title}">
<xsl:when test="image:caption">
<xsl:value-of select="image:caption"/>
<xsl:value-of select="$image_location"/>
<!-- Show this element only if image:caption element is present -->
<xsl:if test="image:caption">
<xsl:value-of select="image:caption"/>
<!-- Show this element only if image:title element is present -->
<xsl:if test="image:title">
<xsl:value-of select="image:title"/>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment