24
Feb
Just a short note that I have experimented with svg embedded inline in xhtml. Taking the code
from webkit+svg, I did a prototype bundling khtml2 and ksvg2 on top of kdom, and making sure
the svg elements use render objects this time. I also used just one backend, which uses the qt4 painter.
Even though I did not get to implement all features (markers, text), it clearly shows that
inlining of svg in xhtml is very possible!
Here are examples of rendering of xhtml+svg docs:
http://www.xs4all.nl/~rwlbuis/simpleCDF.png
http://www.xs4all.nl/~rwlbuis/simpleCDF2.png
Cheers,
Rob.
- rwlbuis's blog
- Login or register to post comments
- 436 reads

Comments
Nice!
Very nice results. Can i download the code somewhere? I'll take a look at it to get any idea's on rendering xhtml + xforms.
Re: Nice!
Thanks :)
The code is not really special. I just combined khtml2
and ksvg2 from kdenonbeta and took the ideas from Apple's
webkit (http://webkit.opendarwin.org/).
Particularly the webkit codebase should give enough pointers
how the dom building and rendering with compound documents
should work. Feel free to join us in irc at #ksvg and/or #webkit
to get more detailed answers :-)
Cheers,
Rob.