472,122 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

no dynamic IMAGE ?

Hello, i ve a little problem for validate my web site because i ve a dynamic
image.
And the w3c platform test don't like my image :(

il someone have a idea for this problem

i've just a img src but the src is a dynamic php file called. So i need to
send somes information for good process.

what s wrong ?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>Administration</title>

</HEAD><BODY BGCOLOR="#FFFFFF" >
<img
src="photo.php?iL=100&iH=100&sFile=/template256.jpg&cColor=0_0_0&sSortie=ecr
an&iCompress=80&sShrink=no" name='imgvisu' width=100 height=100 alt=''>

</BODY>
</HTML>

Jul 20 '05 #1
5 2094
URL?
Jul 20 '05 #2
"Manu" <ma**@cyklades.com> wrote in message
news:bh**********@news-reader2.wanadoo.fr...
Hello, i ve a little problem for validate my web site because i ve a dynamic image.
And the w3c platform test don't like my image :(

il someone have a idea for this problem

i've just a img src but the src is a dynamic php file called. So i need to
send somes information for good process.

what s wrong ?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>Administration</title>

</HEAD><BODY BGCOLOR="#FFFFFF" >
<img
src="photo.php?iL=100&iH=100&sFile=/template256.jpg&cColor=0_0_0&sSortie=ecr an&iCompress=80&sShrink=no" name='imgvisu' width=100 height=100 alt=''>

</BODY>
</HTML>


The validator says:
Line 9, column 22: cannot generate system identifier for general entity "iH"
Line 9, column 29: cannot generate system identifier for general entity
"sFile"
Line 9, column 52: cannot generate system identifier for general entity
"cColor"
Line 9, column 65: cannot generate system identifier for general entity
"sSortie"
Line 10, column 3: cannot generate system identifier for general entity
"iCompress"
Line 10, column 16: cannot generate system identifier for general entity
"sShrink"

It is looking at &iH=100, and thinks that is an entity (like &nbsp;)
Solution: escape each of your ampersands (replace with &amp;)

Jul 20 '05 #3


Manu wrote:
Hello, i ve a little problem for validate my web site because i ve a dynamic
image.
And the w3c platform test don't like my image :(

il someone have a idea for this problem

i've just a img src but the src is a dynamic php file called. So i need to
send somes information for good process.

what s wrong ?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>Administration</title>

</HEAD><BODY BGCOLOR="#FFFFFF" >
<img
src="photo.php?iL=100&iH=100&sFile=/template256.jpg&cColor=0_0_0&sSortie=ecr
an&iCompress=80&sShrink=no" name='imgvisu' width=100 height=100 alt=''>


I guess you need
<img src="photo.php?iL=100&amp;iH=100&amp;sFile=templat e256.jpg
and so on, that is replace & in the query string with &amp;

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #4
On Fri, 08 Aug 2003 13:53:03 -0500, "Shawn K. Quinn"
<sk*****@xevious.kicks-ass.net> wrote:
Manu wrote:
Hello, i ve a little problem for validate my web site because i ve a
dynamic image.
And the w3c platform test don't like my image :(

[...]
what s wrong ?


Holy cow patties, what *isn't* wrong?


A slight over-reaction here, I feel.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


This is wrong. New documents should be using HTML 4.01 Strict.


Generally a good idea, but not where a lot of visitors are still using
NN4 (e.g. some academic environments). And anyway the OP didn't say it
was a new document.

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


This is wrong. You shouldn't need it. You should reconfigure the server to
send this header instead.


No, it's not wrong. Getting the server to send the headers is
undoubtedly the preferred method, but this line is not wrong. What if,
for example, an author wishes to do off-line validation?
<img

src="photo.php?iL=100&iH=100&sFile=/template256.jpg&cColor=0_0_0&sSortie=ecr
an&iCompress=80&sShrink=no" name='imgvisu' width=100 height=100 alt=''>


This is wrong. There are no entities named &ih, &sFile, etc. The ampersand
is properly represented in HTML by "&amp;" as "&" by itself is reserved to
indicate the start of entities.


Finally I agree with you. ;-)

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #5
OK ! thank you ! every body s !
go to w3c certification :)
"Manu" <ma**@cyklades.com> a écrit dans le message news:
bh**********@news-reader2.wanadoo.fr...
Hello, i ve a little problem for validate my web site because i ve a dynamic image.
And the w3c platform test don't like my image :(

il someone have a idea for this problem

i've just a img src but the src is a dynamic php file called. So i need to
send somes information for good process.

what s wrong ?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>Administration</title>

</HEAD><BODY BGCOLOR="#FFFFFF" >
<img
src="photo.php?iL=100&iH=100&sFile=/template256.jpg&cColor=0_0_0&sSortie=ecr an&iCompress=80&sShrink=no" name='imgvisu' width=100 height=100 alt=''>

</BODY>
</HTML>

Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tompa | last post: by
3 posts views Thread by JOSEPHINE ALVAREZ | last post: by
11 posts views Thread by toton | last post: by
9 posts views Thread by pbd22 | last post: by
7 posts views Thread by dino d. | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.