|
Posted by David Dorward on 11/05/07 10:08
On Nov 4, 5:19 pm, Bone Ur <monstersquas...@yahoo.com> wrote:
> Did you ever notice that most of what the w3c recommends is a restriction
> rather than an enhancement? Such policies are supposed to make things work
> better, which they may do about half the time - maybe. From what I recall,
> one cannot use the javascript method "document.write" in xhtml
That is just due to the way browsers have implemented it, not a
requirement of the specification.
> and you have to put something like [[CDATA && ]] (?) near the element terminators.
XML is simpler than SGML and doesn't have a means of saying "Ignore <
and & characters inside <foo> elments". This means XML can be parsed
without needing access to a DTD, and that XML parsers can be smaller
and faster than SGML parsers.
> Another of my favorites is the requirement of slash terminators for
> unclosed elements.
Ditto. You don't need a DTD to find out if the element is finished or
not.
(For all the above, read "DTD" as "DTD or another means of knowing the
specific XML dialect")
--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
Navigation:
[Reply to this message]
|