bulia byak wrote:
Personally I like to keep as much as possible as XML for "source", and then use various XSLT stylesheets to generate different versions. I've done HTML, PDF, RTF and others this way.
I'd LOVE to have it this way for tutorials (XML->SVG), but unfortunately the mix of text and Inkscape graphics is too hard to create in XSLT, mostly because XSLT can't get an idea of how tall or wide some element is going to be, but SVG needs absolute coordinates for positioning.
Ideally you would use XSL-FO for this: XSLT to do XML->XSL-FO then an FO render to create SVG. I'm not sure that the SVG renderer for Apache's FOP is very good though, and I'm not aware of any others. FO hasn't really caught on in way it could have (should have?)
John