W3C home > Mailing lists > Public > www-html@w3.org > June 2005

Re: XML tags are just a cheap rip-off of PHP tags

From: David Woolley <david@djwhome.demon.co.uk>
Date: Thu, 23 Jun 2005 22:35:23 +0100 (BST)
Message-Id: <200506232135.j5NLZOG03265@djwhome.demon.co.uk>
To: www-html@w3.org

> I donā€™t think it is as much a matter of stealing as that they just had 
> to pick a delimiter character - had they used e.g. % instead of ?, the 
> ASP and JSP folks would perhaps not have liked that.

I don't know the early history of PHP, but I strongly suspect that they
use ? for the same reason that XML uses it, namely it is the proper
way of forming an SGML processing instruction.  The name after
the ? tells you what processor is supposed to handle that instruction,
so there is no conflict between XML and PHP if you use properly
formed processing instructions.

For some reason, PHP also chose to allow an abbreviated form, that
doesn't indicate the processor, so will cause conflicts, but that
was just a convenience for pure HTML use.  It makes the resulting
input document invalid, whereas the full form is valid SGML.
Received on Thursday, 23 June 2005 21:40:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:19:03 UTC