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

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

  • From: David Brownell <db@E...>
  • To: xml-dev@i...
  • Date: Sat, 31 Oct 1998 20:11:14 -0800

Re: CDATA by any other name... (was The raw and the cooked)
Rick Jelliffe wrote:
> 
> 	 marked sections actually mark up
> notations: at ISO there has been discussion of whether to allow something
> like (for example)
>         <![JAVA[ java code here ]]>

While I applaud the ongoing proliferation of real Java(tm), I admit I
don't like that either ... <Java><![CDATA[ java code ]]></Java> has
worked just as well, and does no damage to XML.  (Not as pretty though!)


> This is not something that I would expect to make its way into XML (and I
> think the ISO people are now more keen to help XML/WebSGML than on tidying
> up SGML) but I think the idea that a marked section

... but XML has only "CDATA" sections.  There's no such thing as
a "marked" section, and "CDATA" is specified to be character data
terminated by a "]]>" sequence.  No notion of marking/labeling.


>	 not only alters
> delimiter recognition but also labels the data can be seen (in embryo or
> residually) in DOMs elevation of CDATAsection to node-worthiness, which has
> so perplexed Henry.

Keep in mind that DOM implementations are not required to import
an XML document using CDATASection nodes ... Sun's just uses it
to determine _how to write out_ the text, if someone adds such a
node to a DOM tree they've constructed.  The "<" and "&" markup
delimiters don't get quoted like they must be for normal text,
and "]]>" gets funkified differently.


> I think the answer is clear from the spec:
> [43]  content ::=  (element | CharData | Reference | CDSect | PI | Comment)*
> so a CDSect is not CharData. Therefore a CDSect is only valid in mixed
> content, even though it is well-formed to have it in element content.

I can't buy that conclusion.  Among other things, that production has
no constraints relating to "mixed content".  Is this an argument that
cosmetic whitespace, comments, and PIs likewise must exist only inside
mixed content?

- 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/
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...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.