W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Re: "ignorable white space"

From: David Brownell <david-b@pacbell.net>
Date: Mon, 12 Jun 2000 06:54:57 -0700
Message-ID: <006601bfd475$cb56f8c0$6500000a@brownell.org>
To: <www-dom@w3.org>
> >p.s. Can CDATA sections be located in "ignorable" areas?

Not according to January errata to the XML specification.

> Good question. I would say they shouldn't be,
> since the point of whitespace
> in element content is just to allow "pretty-printing" (indenting and the
> like), and if you're using a CDATA Section it's because you're trying to
> make an explicit statement about document content.

... even though in key places, the XML 1.0 spec had made
clear that CDATA just uses an alternate set of delimiters.
The errata have gone to some work to preclude that reading.
More SGML legacy has slipped into XML doctrine.

Lesson for anyone doing syntax design in the future:  there
is a reason for avoiding such context-sensitive mechanisms.
In one phrase:  needless complexity.

- Dave
Received on Monday, 12 June 2000 09:55:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC