Daniel Dekany wrote: >> XHTML <div> may contain text (i.e. they have mixed >> content) and have no xml:space="preserve" attribute > > Maybe the root of the problem is on the CSS level. White-space between > block should be ignored, I think.
The root of the problem is in the XHTML schema, not in CSS. Treatment of whitespace in mixed content when there is no other character data is frequently ambiguous (unless xml:space="preserve"). Partly the difficulties you are describing comes from a desire to lay the XML out in a way which reads nicely for humans in its raw form. There is an inherent tension in XML between unambiguous representation and raw readability. This is not XXE's fault: it crops up wherever you try to read and edit raw XML - unless the schema has been carefully designed with this in mind. Philip Nye

