DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14727>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14727

It omit the blanks around ']'





------- Additional Comments From [EMAIL PROTECTED]  2002-11-23 15:25 -------
That is because the code in Avalon trims on each characters() event.  SAX 
parsers are allowed to pass character data using as few or as many events as 
they want to and it is the responsibility of the SAX handler to properly 
catenate the result.  Xerces1 and Xerces2 use completely different scanning 
implementations that result in different breaks in characters events.  In 
Xerces1 the scanner would process the content you provided in a single event, 
while Xerces2 produces the following: (from xni.DocumentTracer sample)

  characters(text="ddd[ dddd   ")
  characters(text="]")
  characters(text="   ccc")

As you can see, calling trim() on each substring will result in the value:
  "ddd[ dddd]ccc"

In Xerces1 you would just get:
  characters(text="ddd[ dddd   ]   ccc")

which trim() would not modify.

Looking at the Avalon code it seems like this problem was reported and fixed.  
If you are not running the latest version then you should try to move to the 
latest code for the framework in CVS and file a bug with Avalon if it is still 
reproducable.

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

Reply via email to