|
[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: Sat, 31 Mar 2001 20:20:42 -0500
Title:
> -----Original Message----- >
From: Bob Kline [mailto:bkline@r...] > Sent: Saturday, March 31, 2001 5:23 PM > To:
Charles Reitzel > Cc: xml-dev@l...; Tim Bray > Subject: Re:
CDATA sections in W3C XML Infoset > > I hope you're right.
Doesn't appear to be a universally held point of > view, though.
From earlier in this thread [1]: > > > I'd take that as meaning
that the DOM does not conform to the > > Infoset spec.
Accordingly, the DOM is what needs to be changed, not > >
Infoset.
I can assure you (unofficially, but after having participated in
several DOM WG discussions on this matter) that the DOM plans to support
CDATA sections for the forseeable future. They are needed by XML
editors and databases; the DOM API is widely used by both, so the CDATA
section support will remain as long as they remain in the XML serialization
format.
The DOM *will* change to accomodate the InfoSet by a parse-time
option to throw away CDATA section markers, probably by some yet-to-be
determined mappings from the v 2.0 XPath/XSLT and Query data models to the
more "raw syntax" data model in the DOM, some reconciliation between the
syntactical representation of namespace declarations as attributes and their
more abstract representation in the InfoSet, and so forth.
I
don't REALLY think there is all that much disagreement here. CDATA
sections are a bit of a mess to use even at the pure text level; they're
useful for escaping blocks of non-wellformed content, but dangerous because
the content might contain the character strings that delimit CDATA
sections. Used carefully, they are useful in certain limited
circumstances (such as Bob Kline's application) but I've heard very little
demand for them to be supported by XPath/XSLT, XQuery, Schema, etc.
Thus the InfoSet folks chose to leave them out. I *hope* that Mr.
Cowan's quote means something like "better for the DOM to figure out how
to peacefully co-exist with XPath/Query/Schema than for the other specs to
have to wrestle with the raw syntax stuff that the DOM has to deal
with."
I'd remind people once again of the Common XML Usage Guidelines
at http://simonstl.com/articles/cxmlspec.txt It is sortof like an ancient map of the XML world,
with the "Common XML Core" identifying the civilized world and all sorts of
"here be dragons" notations denoting the Terra Incognita of
Interoperability. The InfoSet is, to a certain extent, the W3C's
admission of the truths behind Common XML -- the parts of XML syntax that it
doesn't include in the abstract data model are among the most dragon-infested
regions of XML-space, especially CDATA sections and entity
references!
[If this reply sounds a bit schizophrenic, it's because my
inner minimalist hates CDATA sections and hope they die a painful death in
XML 2.0, but my outer DOM/day job personna sees all the uses they have in the
real world today].

|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
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.
|
|