[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: More CDATA questions

  • From: David Brownell <david-b@p...>
  • To: roddey@u...
  • Date: Wed, 16 Jun 1999 21:17:30 -0700

Re: More CDATA questions
roddey@u... wrote:
> Is CDATA effectively the same as an entity reference

No -- CDATA is characters.

Entity reference is "contents" which may be characters, but
may also have elements, nested references, and more.

>	 except that its in place?
> I.e. is it basically just a blob of text which, once seen will
> have the
> bracketting gorp removed and the characters will be taken as
> character data of
> the enclosing element?

Just characters ... which isn't the same as an entity ref.

> 	 if I see this:
> <foo>
>    <![CDATA[     ]]>
> </foo>
> should the spaces inside the CDATA be treated as either ignorable
> whitespace or
> characters according to the normal processing rules for a CHILDREN
> element?

Treated as characters.  There was some discussion here a few months
back on this topic, initiated by Henry S. Thompson.  It should be in
the archives (sometime before February).  The OASIS test suite in
consequence has a case for this; I recall putting Henry's case into
that collection of tests, after it seemed there was agreement.

> I guess part of the question is that are the contents of CDATA
> sections REALLY
> not passed judgement on, as you would think from the spec,

Really!  ;-)

- Dave

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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.