W3C home > Mailing lists > Public > www-html@w3.org > March 2001

Re: Questions about making an OMNI-COMPATIBLE site

From: Bertilo Wennergren <bertilow@chello.se>
Date: Thu, 29 Mar 2001 22:29:25 +0200
Message-ID: <011901c0b88e$f6505320$536859d5@chello.se>
To: "www-html" <www-html@w3.org>
Daniel:

> Actually, you know what bothers me? You cannot write an XHTML document
> in php! The XML declarion, <?xml version="1.0"?>, confuses the php parser,
> and gives you an error message.

Wouldn't something like this save the day?

  <<? // ?>?xml version="1.0" encoding="ISO-8859-3"?<? // ?>>

(I don't use php, so I might be mistaken about the proper syntax.)

> Using php or asp would be the idea way to fix a site so that it serves
> the quirks of as many browsers / platforms as possible, but since you can't
> write xhtml in php...

I'm sure you can. You could also create a function in php that echoes
an xml declaration string.

#####################################################################
                         Bertilo Wennergren
                 <http://purl.oclc.org/net/bertilo>
                        <bertilow@chello.se>
#####################################################################
Received on Thursday, 29 March 2001 15:22:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:45 GMT