-
October 22nd, 2001, 10:12 AM
#1
Displaying an image using XSL
I am trying to display an XML document in IE5.5 using XSLT. I am having a problem displaying a .jpg file specified in the XML file. The XML looks like this:
<img src="C:\BrassDev\GUI\Pier\Working\Images\FootingBeamShear.jpg" width="447" height="235">
My XSL is as follows:
Except the spaces after , this is displayed in IE5.5 as:
How can I get the image displayed instead of the text? If I copy this out of the browser and insert it in an HTML document, or if I remove the spaces above, it displays properly. What am I missing? Thanks for your help.
-
January 9th, 2002, 04:28 PM
#2
Re: Displaying an image using XSL
Instead of value-of try copy-of.
-
January 9th, 2002, 06:42 PM
#3
Re: Displaying an image using XSL
Another thing you could try:
<IMAGE_FILE
src="C:\BrassDev...and so on....jpg"
width="447"
height="235"/>
<p>
<img>
<xsl:attribute name="src"><xsl:value-of select="IMAGE_FILE/@src" />
<xsl:attribute name="width"><xsl:value-of select="IMAGE_FILE/@width" />
<xsl:attribute name="height"><xsl:value-of select="IMAGE_FILE/@height" />
</img>
</p>
-
January 10th, 2002, 10:05 AM
#4
Re: Displaying an image using XSL
That worked great. Thanks for your help.
-
January 10th, 2002, 10:06 AM
#5
Re: Displaying an image using XSL
I get the same problem with copy-of as I had with value-of. Thanks for your time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|