I need in my xsl file an image. this image is in a content in umbraco, the news page. I did this but doesn't work:
<xsl:if test="$currentPage/image > ''">
<xsl:variable name="media1" select="umbraco.library:GetMedia($currentPage/image, false())" />
<xsl:if test="not($media1/error)">
<img src="{$media1}" />
</xsl:if>
</xsl:if>
the result is:
<a href="#"></a>
it doesn't take nothing. some one have some idea why?
$currentPage/image- Is it returning the expected value which I think you believe is an integer? Output the value to the page using something like<xsl:value-of select="$currentPage/image" />or you could also look at the contents of $currentPage using<xsl:copy-of select="$currentPage" />- ProNotion