Re: [libcroco-list] selection engine



On Tue, 2004-04-06 at 16:40, Dodji Seketeli wrote:
> I think you should really have a look at w3c dom.
> It's a unified representation/API for not only and xml infoset anotated
> with CSS sheets. Don't only look at DOM CORE but also at the DOM style
> specification at
> http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/Overview.html .
> 
> I really think it would rock no end if we could share a library that
> provides use with that api in GNOME.

DOM is simlar in spirt to the API I need, but...

My feeling is that DOM's design is a very bad fit for the existing code
that would need to use the new tree API.  One of the most severe is that
DOMString mandates using UCS2 strings rather than UTF-8 (that's also a
mismatch with libxml2, actually).

In effect, we'd need three levels of wrappers (shim code -> DOM ->
libxml) just for the underlying document tree representation.  That
seems a bit excessive to me.

I'm not sure how much this would help GNOME, either ... I'm using C++,
not GObject.

-mental

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]