Nico, > > You are right. This happens for me too, if I use the Crimson-parser > (included in the distro). If I use Xalan all is well. > > What do you (and the other commiters) think of the following? I'm not 100% > sure if I'm right.
It is not a bug in crimson. addText can be called multiple times. The description of the SAX characters() method includes "SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; " I have seen this chunking before. It will not necessarily occur on a line boundary (I have seen it on 8k boundaries), so I think we should just concatenate the text. Whitespace (including CR/LF) in content is not significant in XML. The concatenation without the linefeeds is OK to go in and this change has the side effect of making multiple <description> elements do something useful. Conor
