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!

How to load an Image

Status
Not open for further replies.

AuctionLamb

Programmer
Feb 16, 2005
65
ZA
Hi guys!!

How do I load an Image in an XSL? I use the normal <img src="//IDSLogo.jpg"></img> but is shows no image in the browser/rendered view.

Help me on this one please!

THANKS!!
 
Are you storing your greater-than and less-than symbols as XML encoded entities?
Code:
&lt;img src="//IDSLogo.jpg"/&gt;

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
What is your output? Does "//IDSLogo.jpg" actually point to an image?

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
All I get is an blank image with an red cross. the picture lies in the same folder as my XML/XSL files. Hop I am doing it right
 
If its in the same folder, just use:
Code:
<img src="IDSLogo.jpg"/>

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Still gives me an error, I use that syntax in the XSL. Is there any other reference or code that I have to put at the bottom of the page or in the XML?
 
Post your XSL

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Here it is,it is in red.......almost at the bottom:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl=" xmlns:fo=" xmlns:xs=" xmlns:fn=" xmlns:xdt="<xsl:eek:utput omit-xml-declaration="yes" method="text" encoding="ISO-8859-1"/>
<xsl:template match="/">
<html>
<head>
</head>
<body style="Verdana; font-size: 10pt; font-weight: normal; color: #000000; text-decoration: none">
<p>
<!--To: </b><span style="font-size:10pt"><xsl:value-of select="//toName"/> </span></p><br/><br/>
&#13;&#10;
<p><b style="font-size:9pt">
Attention: </b><span style="font-size:10pt"><xsl:value-of select="//toName"/> </span></p><br/><br/>
<p style="font-size:10pt">
&#13;&#10;-->
Dear <b style="font-size:10pt"><xsl:value-of select="//toName"/></b></p>
&#13;&#10;
<!--<p style="font-size:10pt">
<xsl:value-of select="//myRef"/></p>
&#13;&#10;
<p style="font-size:10pt">
<xsl:value-of select="//balance"/></p>
&#13;&#10;-->

<p>IDS (Imaging Data Solutions), part of the Naspers group, would like to introduce you to the latest technology in printing solutions called Variable Printing.</p>
&#13;&#10;
<p> IDS believe that the future of the printing industry lies in its ability to integrate both data and image to create a customised printing solution. The solution being a targeted, cost effective variable print campaign that meets the needs of the client and a range of target audience requirements in one single mail shot, maximizing your returns and thus your return on investments.</p>
&#13;&#10;
<p> Statistics have shown that a personalized variable printing solution will show a 5% to 10% return on enquiries as apposed to the traditional 3% expected return on a normal mail shot.</p>
&#13;&#10;
<p> Our technology allows us to work with your existing database, cleaning the data and verifying the data supplied. Your data could be as simple as address details or as complex as a full investment history. You supply the data and we will supply the solution.</p>
&#13;&#10;
<p> At IDS we pride ourselves in our ability to work with our clients to create and advise on solutions that will maximize returns. We also have the facilities to store your data as well as supply it back to you in a variety of formats enabling you to maximize your return on investment.</p>
&#13;&#10;
<p> Sounds complicated? Not really. Give us a call today and let us show you how. To find out more about IDS, please click on the following link provided: <URL><a href="&#13;&#10;
<p> Other services include: Digital Printing; Litho Printing; Data Storage; and Data Cleaning.</p>
&#13;&#10;
<p> Kind regards</p>
&#13;&#10;
<p> <b style="font-size:12pt">Stefan Dippenaar</b></p>
<p> <b> Manager: Imaging Solutions Western Cape</b></p>


<img src="IDSLogo.jpg"/>
<!--Image in Here -->
<p>Tel: +27 21 949 0990 Fax: +27 21 949 0991</p>
<p> Cell: +27 83 455 4741</p>
<p> stefand@imagingdatasolutions.com</p>
<p> <URL><a href="

</body>
</html>
</xsl:template>
</xsl:stylesheet>
 
This is fine. Your image must be called "IDSLogo.jpg" and must be in the same directory as where the HTML page is being served from.

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top