On Mar 9, 2006, at 00:17, Glen Mazza wrote:

Hi Glen,

[EMAIL PROTECTED] wrote:

Whitespace verifies as #PCDATA if #PCDATA is allowed at a particular point. If #PCDATA is NOT allowed at a particular point, the whitespace is ignored for the purposes of verifying.
So we are currently handling it correct for XML whitespace. Now, we could catch those characters() events anyway, and test all individual chars to see if they are classified as whitespace in XML, and if not, throw a little warning...

I may be wrong here, but I think Xerces does that (i.e., this is done at a layer lower than FOP)--it probably tosses out insignificant whitespace so FOP wouldn't even get those character() calls.

Wrong indeed. All whitespace characters MUST be reported by any compliant XML parser. If that wasn't the case, then we wouldn't have had to talk so much about trailing and leading whitespace removal in blocks and inlines... :-)


Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to