Page 1 of 1

formatting images in XML data

Posted: Mon Apr 12, 2004 3:26 pm
by kendall
hello,

i am developing a shoutbox using PHP and XML. PHP is used to get the data and im using XML to store and display the data.

However i am having a problem with embeded <img> tags

i have the shoutbox so that people can use smileys much like what you guys have.

thing is i have

Code: Select all

<shout>
<name>the persons name</name>
<message>this is some text <img src="url/to/smiley.gif"/></message>
</shout>
However when i display the xml document which is formatted by a style sheet i dont get the images yet the code is there

Do i need to wrtie a "style" for the image tag?

i would have thought that it would have displayed as the output of the xml/xsl is html and it is an html tag

Kendall