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


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CDATA sections in W3C XML Infoset

John Cowan wrote:
> Richard Lanyon scripsit:
> > Could someone explain to me why CDATA section start/end markers were
> > taken out of the W3C Infoset?
> Essentially because we (but I am NOT speaking officially for the Core WG
> here) don't think they carry any real information.  There is no difference
> between CDATA sections and careful use of < and &.

Beg to differ, sir.

Design goal 6 in the XML spec is:

"XML documents should be human-legible and reasonably clear."

True, there is no difference in *machine* semantics "between CDATA
sections and careful use of < and &" but there is a real
difference in human-legibility and clarity between the two, especially
if they contain content like JavaScript 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.