* Antone Roundy wrote:
>1) Clearly, this cannot appear in an Atom feed, because © is not 
>an XML entity:
>
>       <content type="XHTML">&copy;</content>
>
>What about this?
>
>       <content type="XHTML"><div 
>xmlns="http://www.w3.org/1999/xhtml";>&copy;</div></content>

That depends on whether the document has a document type declaration and
if how it looks like. And on various properties of the XML processor and
the application using it, as well as on various dynamic conditions. E.g.
whether the document type declaration refers to an external subset and
whether the processor attempts to resolve the reference. If there is no
document type declaration, the document would not be well-formed.

>2) If that is valid (I'm presuming that it is, and that it should be 
>rendered as a copyright symbol), I'm wondering how many XML parsers are 
>going to choke on it anyway.  If that is NOT valid, then how would one 
>put a copyright symbol (or any other XHTML entity that is not an XML 
>entity) into XHTML content in an Atom feed?

There are two ways to refer to such characters, either by literally in-
cluding them (in very much the same way as you've included "X" and "L"
in your example) or by using character references ala

  <content type="&#x58;HTML"><div ...
-- 
Bj�rn H�hrmann � mailto:[EMAIL PROTECTED] � 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/ 

Reply via email to