From kfm-devel Mon Mar 06 14:12:00 2006 From: Frans Englich Date: Mon, 06 Mar 2006 14:12:00 +0000 To: kfm-devel Subject: Re: kdom and khtml integration Message-Id: <200603061412.00918.frans.englich () telia ! com> X-MARC-Message: https://marc.info/?l=kfm-devel&m=114165436004791 On Sunday 05 March 2006 21:32, Andras Mantia wrote: [...] > >> - the KDOM tree nodes must be extensible (they should be able to hold > >> extra information) > > > > That will definately be possible, just like the NodeImpl contains > > pointers to the RenderObject, we can also supply nodes with "UserData". > > Yes, this is needed, as - for example - we need some kind of information > about the position of the node in the document itself. This particular need will be taken care of by KDOM out of the box, due to that DOM 3 Core supplies this feature. I will probably look at it at /some point/, due to it being close to my work(XQuery/XSL-T). I think it will be implemented by a dictionary in DocumentImpl, mapping 'NodeImpl *' to DOMLocator instances. So, Quanta doesn't need to implement at what file, line, and column a certain node occurs. However, you still need an extension mechanism for your other stuff, of course. Cheers, Frans