Non-ignorable characters in ignorable white space

Elliotte Harold <[email protected]> Sun, 25 Apr 2004 13:58:19 -0400
Newsgroups gmane.text.xml.sax.devel
Message-ID <[email protected]>
There's a case that isn't really dealt with in the SAX spec I'd love to 
clear up if we could. Consider this document:

==============
<!DOCTYPE root [
  <!ELEMENT root (a)>
  <!ELEMENT a EMPTY>
]>
<root>



That was white space but this isn't!
  <a>
</root>
=============

This document is well-formed and invalid. Should the white space 
preceding the non space PCDATA be reported to the ignorableWhiteSpace() 
method or not? I can find nothing in the SAX specification or XML 
specification that is clearly on point here. To make the question 
tougher, assume there's 128 or so of white space before the first 
non-whitespace charcter. That is, imagine the parser's buffer may fill 
and one method or the other need to be called before it's known for 
certain that all the content is ignorable. What should be done here?

--
Elliotte Rusty Harold



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel