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!

using xsl/xml to render image

Status
Not open for further replies.

anyideas

Programmer
May 2, 2002
127
GB
Hi all,

I'm trying to render an image using xsl / xml. I'm not very sure about the syntax, I listed the page below.

thanks for any help

<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 here--><img src='<xsl:value-of select=&quot;DocLocation&quot;>'/>
</td>
</tr>
</TABLE>
</xsl:template>
</xsl:stylesheet> Mark Preece
 
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