Aryeh Gregor wrote:
On Mon, Apr 26, 2010 at 4:02 AM, Dmitriy Sintsov questpc@rambler.ru wrote:
Wouldn't it be enough just to define an entity? http://www.criticism.com/dita/dtd2.html#section-ENTITIES I used such definition for nbsp once in XSL sheet. Don't know how well it works alone in XML.
I guess that would be possible, yes, but HTML defines an awful lot of entities, and adding them all inline to every page doesn't sound like a great idea to me.
I suppose that you could link to a local copy of the DTD, that would keep happy but would probably break more parsing, since html doctypes are more or less magic words for many programs dealing with it (beginning with browsers, but some validators also do so). I would prefer not having to deal with the less developer friendly numeric entities in the html.
If we are serving HTML5 (not XHTML) why is XML weel-formedness important? I thought that HTML5 means giving up on it. A HTML5 parser must implement the "HTML entities", so they shouldn't need a DTD. http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#char... http://www.whatwg.org/specs/web-apps/current-work/multipage/named-character-...