SAX: Whitespace Handling (question 5 of 10)

Tim Bray tbray at textuality.com
Sun Jan 4 18:10:33 GMT 1998


At 01:02 PM 03/01/98 -0500, David Megginson wrote:
>Should SAX allow DTD-driven parsers to distinguish ignorable
>whitespace from other character data?

If you want to do this, the only reasonable way is with another
argument on the charData() callback, so that it's always chardata,
but some processors will in some circumstances signal that it's
also ignorable.  

Since I think it would be highly unwise for any SAX-using
application to have behavior dependent on the ignorability of
some white space, I would argue strongly just for leaving
this out. -Tim

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