...

View Full Version : Images



Robert Bell
04-01-2003, 11:31 AM
Hi

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.

brothercake
04-02-2003, 10: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?

djmothra
04-03-2003, 10: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>
</xsl:element>

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

<PICTURE>image1.gif</PICTURE>

Robert Bell
04-03-2003, 10:59 AM
Thanks for your help.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum