[alicebot-archcomm] Whitespace clarification

Jonathan Roewen alicebot-archcomm@list.alicebot.org
Tue, 16 Sep 2003 11:39:19 +1200


Ok, I've been reading the spec all wrong.

But it does say all whitespace to be passed to the application.

"An XML processor must always pass all characters in a document that are not
markup through to the application. A validating XML processor must also
inform the application which of these characters constitute white space
appearing in element content."

It's just confusing, as I have an xml parser adding all this stupid
whitespace, and making things break =( And it's just confusing. I just want
to make sure that it's handling whitespace properly.

I've run into problems with it before, such as Kim's AIML set broke in
J-Alice once before, and now this new xml parser I'm using has all sorts of
new weird problems =(

>From memory, the problem I had from Kim's AIML was two sets of tags (<srai>
</srai><srai>  </srai>) which were separated only by a blank line, and the
intent was to produce output where the results of both srai's were separated
by a single space (was the math aiml for adding).

So, if anyone has some extremely concrete definitions of how whitespace is
to be handled, it would be greatly appreciated .. preferrably something in
plain english (unlike the xml spec).

Jon