SAX and whitespace (was Re: Problems with whitespace and msxml)

Tim Bray tbray at textuality.com
Sat Jan 3 01:34:39 GMT 1998


At 03:42 PM 02/01/98 -0500, David Megginson wrote:
>With that in mind, would it be conformant behaviour for SAX to report
>ignorable whitespace as regular character data when the parser
>underneath is using the DTD (and, say, supplying defaulted attribute
>values)?

Lark, BTW, does *not* catch ignorable white space unless it is
validating.  Since it is perfectly OK to build SAX with such a
processor, *if* we want to build ignorable white-space notification
into SAX, it has to be out-of-band; i.e. white space is passed in
the same way as all other content; with perhaps another boolean argument
to the text() method (that what it's called now?) that if true, means
this is ignorable white space.

But I would oppose doing this in SAX; let's keep it simple for now. -T.

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list