Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wrong syntax with image

Status
Not open for further replies.

anyideas

Programmer
May 2, 2002
127
GB
hi all,

I'm trying to display an image, but its not working - either because i'm new to this xml/xsl, i'm dense or more probably both.

I've pasted the code below and any helps really appreciated.

Mark

<xsl:stylesheet xmlns:xsl=&quot; language=&quot;VBScript&quot;>

<xsl:template match=&quot;/&quot;><xsl:apply-templates select=&quot;*&quot;/></xsl:template>

<xsl:template match=&quot;Event&quot;>
<TABLE width=&quot;100%&quot;>
<tr><td><TABLE bgcolor=&quot;silver&quot; cellspacing=&quot;1px&quot;>
<tr>
<td bgcolor=&quot;#F5F7FB&quot;><b>Document Name</b></td>
<td bgcolor=&quot;#F5F7FB&quot;><b>Username</b></td>
</tr>
<tr>
<td bgcolor=&quot;#F5F7FB&quot;><xsl:value-of select=&quot;DocName&quot;/></td>
<td bgcolor=&quot;#F5F7FB&quot;><xsl:value-of select=&quot;UserName&quot;/></td>
</tr>
</TABLE></td></tr>
<tr>
<td>
<img src='Documents/afax.jpg' />
</td>
</tr>
<tr>
<td>
error--> <img src='<xsl:value-of select=&quot;DocLocation&quot;>'/>
</td>
</tr>
</TABLE>
</xsl:template>
</xsl:stylesheet>
 
I found an answer if anyones interested

<img>
<xsl:attribute name=&quot;src&quot;>
<xsl:value-of select=&quot;DocLocation&quot; />
</xsl:attribute>
</img>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top