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

RE: CDATA sections in W3C XML Infoset

  • From: Mike.Champion@S...
  • To: xml-dev@l...
  • Date: Wed, 28 Mar 2001 08:56:34 -0500

cdata syntax
Title:


> -----Original Message-----
> From: Francis Norton [
mailto:francis@r...]
> Sent: Wednesday, March 28, 2001 7:52 AM
> To: John Cowan
> Cc: Richard Lanyon; xml-dev@l...;
> www-xml-infoset-comments@w...
> Subject: Re: CDATA sections in W3C XML Infoset
>
>
>Script code.
>
> We've all learnt to fear and loath the sight of CDATA sections being
> used to output unbalanced markup, but I would like to suggest
> respectfully that dropping the CDATA start and end markers out of the
> infoset as a way of discouraging this practice is overkill.


[Speaking only for myself, not the DOM WG or my employer ...]

CDATA Sections have been decreed "syntax sugar" by the experts writing the InfoSet spec.  The DOM has to be useful by ordinary Joe's in the trenches, and will continue to expose CDATA sections ... for all the reasons noted in this thread. <grin>

The DOM will *support* the infoset by bringing terminology (and perhaps namespace declarations) in line with the InfoSet terminology.  This doesn't mean that the DOM must deprecate CDATA Sections, entity references, etc., it simply means that the DOM *extends* the InfoSet, as the InfoSet spec suggests.

So, you will be able to put CDATA sections and entities in XML syntax, manipulate them with the DOM, but not validate them with Schema or query for them with XPath or XQuery or style them with XSL.  I don't *think* this is a significant problem for real developers ... In the <script> example, you could query/validate/style with the <script> tag rather than the CDATA syntax sugar, right?


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.