W3C home > Mailing lists > Public > www-html@w3.org > January 2006

Re: content type for XHTML fragments

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 16 Jan 2006 17:21:59 +0100
To: Shane McCarron <shane@aptest.com>
Cc: www-html@w3.org
Message-ID: <anhns1t62v70jrh962i1eh826bvs1nue27@hive.bjoern.hoehrmann.de>

* Shane McCarron wrote:
>If it were me....  I would include a DOCTYPE and ensure that the 
>fragment was actually legal xml (the example below is not).  Somehting like:
>     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
><p>This is <em>really</em> cool</p>
>And use a content type of application/xml-external-parsed-entity.

I'd recommend against this as document type declarations are not allowed
in external parsed entities. "this is <em>really</em> cool" on the other
hand is a well-formed external parsed entity.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 16 January 2006 16:21:22 GMT

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