I know i can show document attachments this way:
<xsl:element name="SharePoint:AttachmentsField">
<xsl:attribute name="runat">server</xsl:attribute>
<xsl:attribute name="ListId">
{27A5A2ED-76FB-4DE3-8206-B4BE32C09CFC} </xsl:attribute>
<xsl:attribute name="FieldName">Attachments</xsl:attribute>
<xsl:attribute name="ControlMode">Display</xsl:attribute>
<xsl:attribute name="Visible">true</xsl:attribute>
<xsl:attribute name="ItemId">
<xsl:value-of select="@ID"/>
</xsl:attribute>
</xsl:element>
But the problem is how can i show it as an image?Not link to the text. Also how can i have it open in a new window. In SP 2007 it was possible :( Thanks in Advance