OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: CDATA by any other name... (was The raw and the cooked)

[ Lists Home | Date Index | Thread Index ]
  • From: ht@cogsci.ed.ac.uk (Henry S. Thompson)
  • To: xml-dev@ic.ac.uk
  • Date: 30 Oct 1998 16:08:45 +0000

<david@megginson.com> writes:

> So, Henry's asking whether this is valid:
>   <!DOCTYPE a [
>     <!ELEMENT a (b, c)>
>     <!ELEMENT b EMPTY>
>     <!ELEMENT c EMPTY>
>   ]>
>   <a><![CDATA[  ]><b/><c/></a>
> [good analysis deleted]

What he said.  The DOM made a serious mistake here in my opinion: it's
stranded in no-person's-land between raw and cooked, without being
either.  It's not cooked, because it gives you EntityReference and
CDATA nodes.  It's not raw, because it DOESN'T give you character
entity references.

To John Cowan:

My original illustrates the point:  if you use the presence of the
CDATA node in the DOM tree to argue against the validity of the above
based on "Elements with element content can
only have S between the tags, and CDATA elements aren't S" then why
doesn't this apply to EntityReference elements as well, since THEY
clearly aren't S either?

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS