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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images not displayed

Status
Not open for further replies.

2122002

IS-IT--Management
Apr 22, 2003
58
US
Dear all, I am having problem to display different images on the screen. below is my XML and XSLT codes. Can someone please help to solve this problem. Below XSLT code does not display the images, it only display the names and text

Thanx.



XML:
-----------------------------------
<description>
<name>California Hotel</text>
<text>Situated close to the city centre</text>
<image>calif.jpeg</image>
</description>

<description>
<name>Zanzi Hotel</text>
<text>Beach Area</text>
<image>zanzi.jpeg</image>
</description>
---------------------------------------

XSLT:

<xsl:value-of select="description/name"/>
<xsl:value-of select="description/text"/>

<img src="description/image/{@image.jpeg}" border="0" height="90" alt="name of hotel"/>


I also use this method but still not working/displaying:

<img src="description/image/{@image}.jpeg"/>
.......

 
Your image is already called $$$.jpeg. Try:
Code:
<img src="description/image/{@image}"/>

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Hi Jon. I Just tried it now but did not show up, it only displays red "X" sign inside the specified column on the screen. All the pictures, XML and XSLT are copied in the same folder.

Also want to use the oppurtunity to thank you for your immence contributions on this forum.
 
Are you sure the pictures have the right file names? Maybe they are .jpg not .jpeg?

Thanks for the thank you. I learn lots by answering the questions, keeps me sharp :)

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