Home > Archive > PERL CGI Beginners > February 2005 > Incorrect HTML Rendering?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Incorrect HTML Rendering?
|
|
| Graeme St. Clair 2005-02-08, 3:55 am |
| I have the following to kick off an HTML page:-
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
<http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> " [
<!ENTITY help "Help">
]
>
<html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml> "
lang="en-US" xml:lang="en-US">
<head>
....
<h1>&help;Blah</h1>
....
The page has passed the W3C validator. (The idea is that I'm trying to make
a simple "macro" that will insert help buttons into the page, so the entity
will eventually be somewhat more intelligent than the above...)
All my local browsers are showing a raw "]>" at the top of the page, and a
raw "&help;" at the point of use.
Is this something I should expect, or are the browsers *all* buggy (surely
not!), or is there some way to tweak the above so it will work as I would
like?
Rgds, GStC.
| |
| David Dorward 2005-02-08, 3:55 pm |
| On Mon, Feb 07, 2005 at 05:42:45PM -0800, Graeme St. Clair wrote:
> <!ENTITY help "Help">
Mozilla will support it in XHTML mode, but not tag soup mode (serve it
as application/xhtml+xml not text/html).
A better solution would be to use your CGI script to handle your macro
functions.
(Insert mutterings about markup authoring questions being
inappropriate for a Perl CGI list).
--
David Dorward http://dorward.me.uk
| |
| Graeme St. Clair 2005-02-08, 3:55 pm |
| All points taken. I'd spent all day trying to find something that would
help, and the list was my last hope.
Alas, the page I was working with was a pure HTML page that acts as gateway
to the scripts. From your hint, I did find that Mozilla does exactly what I
want if the page is renamed to blah.xml, but (again alas) the co internal
standard is still IE.
But thanks anyway (I'm still thinking about "The Dolt"), rgds, GStC.
-----Original Message-----
From: David Dorward,,, [mailto:david@us-lot.org] On Behalf Of David Dorward
Sent: Tuesday, February 08, 2005 3:26 AM
To: 'beginners-cgi@perl.org'
Subject: Re: Incorrect HTML Rendering?
On Mon, Feb 07, 2005 at 05:42:45PM -0800, Graeme St. Clair wrote:
> <!ENTITY help "Help">
Mozilla will support it in XHTML mode, but not tag soup mode (serve it as
application/xhtml+xml not text/html).
A better solution would be to use your CGI script to handle your macro
functions.
(Insert mutterings about markup authoring questions being inappropriate for
a Perl CGI list).
--
David Dorward http://dorward.me.uk
--
To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org
For additional commands, e-mail: beginners-cgi-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>
|
|
|
|
|