I want include the attachment image directly in data view web part.
I used the below code snippet, it is displayed image name link, but I need to print image here.
<xsl:element name="SharePoint:AttachmentsField"> <xsl:attribute name="runat">server</xsl:attribute> <xsl:attribute name="FieldName">Attachments</xsl:attribute> <xsl:attribute name="Visible">true</xsl:attribute> <xsl:attribute name="ItemId"><xsl:value-of select="@ID"/></xsl:attribute> </xsl:element>
I tried up to my level but it's not getting displayed.