View Full Version : Images

Robert Bell
Apr 1st, 2003, 12:31 PM

I'm using an asp page to display the contents of an XML page combined with an XSL stylesheet.

How would you display an image in the XSL page so that it was displayed on the ASP page?

Robert Bell.

Apr 2nd, 2003, 11:37 PM
By parsing it into an <img/> tag.

How much XSL do you already know ... are you having a specific problem with images, or you want to know how to write XSL and you're using the image as an example?

Apr 3rd, 2003, 11:57 AM
this is the XSL code for including images - note it is an XSL'd version of the normal img src tag in html.

<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="PICTURE"/></xsl:attribute>

the PICTURE is the name of the XML container where you have the address or name of the image eg:


Robert Bell
Apr 3rd, 2003, 11:59 AM
Thanks for your help.