On Wed, Jan 28, 2009 at 8:47 AM, Marek Scholaster <[email protected]>wrote:
> I need to write a conversion program from SVG to my custom format (vector > based, only a few shapes, no transformations) > In addition I need to handle different layers differently ( <g > id="layer1"> ) > > Basically I need the svg document in a state where all transformations are > resolved and there is still information about layer of each shape. > Before embarking on writing code, I think you should define what "resolved" means... E.g., SVG can only draw rectangles that are parallel to the X and Y axes. If your language also has this limitation, then when you "resolve" all the transforms, what happens if the rectangle ends up rotated? Do your rectangle equivalents have a "rotation" attribute? Etc. If I were doing this, instead of writing Java I'd just use XSLT plus java extensions <http://xml.apache.org/xalan-j/extensions.html> for the transform stuff, but I'm an XSL nerd :-) -Archie -- Archie L. Cobbs
