I want to output an image using xslt. The src attribute will be comming from an xml node>
Example
<images>
<![CDATA[/images/sample_image.png]]>
</images
in my xslt i outputted the image with the following code below but im getting a broken image.
<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="//images"></xsl:value-of></xsl:attribute>
</xsl:element>
but when i tried to output the image by hard coding the src, it worked.
<xsl:element name="img">
<xsl:attribute name="src">/images/sample_image.png</xsl:attribute>
</xsl:element>
is there any reason why the first code doesn't worked?