From: Wolfgang M. <wol...@ex...> - 2004-05-25 14:56:39
|
So far, I concentrated on document updates via XUpdate, and the XUpdate modification classes call non-standard DOM methods (appendChildren). We definitely need more testing to get the corresponding DOM methods work right. Wolfgang On Tuesday 25 May 2004 01:01, Piotr Kaminski wrote: > I tried a few more tests, and something is definitely broken in eXist. > Either it's picking the wrong gid for the new node being appended, or > XMLUtil.getFirstChildId is incorrect. I would guess the latter, since > DocumentImpl.getTreeLevel can return maxDepth-1, and > XMLUtil.getFirstChildId tries to getLevelStartPoint(maxDepth), which of > course fails. > > Unfortunately, I don't grok the eXist data structure so I can't even > hazard a fix. Can someone more knowledgeable fix this one? To reproduce > the bug, try to appendChild to the DOM of any document in the database. > It will either crash, or put the child in the wrong place. > > -- P. |