img tag XSLT->XHTML

F

full_philNO

Hi all,

I have a problem with the img tag. It simply doesn't want to translate
into a img XHTML tag.

When I write in XSLT :
<img src="..." alt="..." ..../> or <img src=".." alt="..."
.....></img>

The output is always :
<img src="..." alt="..." ....>
without the closing tag

I have tried to trick with the entity code and iso code, same result.
I have tried with IE6 and Firefox 0.8

I really doesn't understand. I declare the XSLT file like that (I have
tried various combinations) :

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:eek:utput method="xml" encoding="iso-8859-1"
omit-xml-declaration="no" indent="yes" doctype-public="-//W3C//DTD
XHTML 1.0 Frameset//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"
 
M

Martin Honnen

I have a problem with the img tag. It simply doesn't want to translate
into a img XHTML tag.

When I write in XSLT :
<img src="..." alt="..." ..../> or <img src=".." alt="..."
....></img>

The output is always :
<img src="..." alt="..." ....>
without the closing tag

I have tried to trick with the entity code and iso code, same result.
I have tried with IE6 and Firefox 0.8

How do you perform the XSLT transformation? Do you let the browser do
that by using an
 
P

Philippe

How do you perform the XSLT transformation? Do you let the browser do
that by using an
<?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>
If so how do you test whether there is a closing />?

I perform it via PHP. I use EasyPHP 1.7.

I test whether there is a closing tab by viewing the source code on
the browser, or simply by testing it with the w3c validator.

I have tried to let the browser do, but the result is something
strange, the result is the XML file transfomed by I don't know what,
because the transformations are the default transformations who are
applied and not the transformations in the XSL : I get a page with all
data written in text mode...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top