Re: content type for XHTML fragments

* 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:
>
>
><!DOCTYPE p
>     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 UTC