Okay, now I'm confused.
On Tue, 6 Feb 2001, Eric Armstrong wrote:
> CDATA is declared in the data, not in the DTD.
> Similar terms have slightly different meanings between the
> DTD and the XML itself, so it can be pretty confusing.
By default, attributes are implicitly CDATA. I confirmed this in two
sources, the XML FAQ (http://www.ucc.ie/xml/) and Neil Bradley's _The XML
Companion_. And according to the latter, CDATA is one of the valid
declared types for attributes in a DTD.
> But then there are attributes...
> As of XML 1.0, I don't believe it was possible to put CDATA
> into an attribute, because attributes were not allowed to
> have structure. (I think that's right, but someone may be
> able to correct me on that.)
Do you mean PCDATA? CDATA doesn't have structure.
My understanding of CDATA is that it's just a stream of unparsed
characters. So I assumed that entities within CDATA would not be parsed.
Am I wrong in this assumption?
-- +=== Eugene Eric Kim ===== firstname.lastname@example.org ===== http://www.eekim.com/ ===+ | "Writer's block is a fancy term made up by whiners so they | +===== can have an excuse to drink alcohol." --Steve Martin ===========+
This archive was generated by hypermail 2.0.0 : Tue Aug 21 2001 - 17:58:00 PDT