Hi Andy,
> I've been trying to implement the W3C example > http://nelson.w3.org/TR/2000/CR-SVG-20001102/coords.html#ExamplePreserveAspectRatio I'd suggest taking a look at the version 1.1 of the SVG specification [1] (the section you mention is also there [2]). It's generally the one implementations best support [3]. If you decide to stick with version 1.0, I'd suggest using the official version of the specification [4]. > on a JSVGCanvas using Batik 1.6, but haven't been able to figure out how to > create named viewport entities as the example above shows. Can anyone tell > me how to achieve this via Batik Java code? Do you mean using the SVG Generator [1]? As far as I know, I guess that the generator doesn't create this sort of entities (but I'm not familiar with it, so I might be wrong). If you really intend this, I'd suggest using a general XML parser/generator. > My ultimate goal is to scale a symbol instanced with a <use> element...maybe > I am going about this incorrectly? I'd say that you could use a transform attribute [5] directly in the use element instead. Something like: <use transform="scale(2)" xlink:href="#ElementId" /> This will likely be better supported among implementations than the attempt of using "preserveAspectRatio", which assume child SVG element(s). If you have general SVG questions, you may consider posting at SVG Developers [6], a group with a larger community and (usually) fast responsiveness. ;-) Hope this helps, Helder Magalhães [1] http://www.w3.org/TR/SVG11/ [2] http://www.w3.org/TR/SVG11/coords.html#ExamplePreserveAspectRatio [3] http://codedread.com/svg-support.php [4] http://www.w3.org/TR/SVG10/ [4] http://xmlgraphics.apache.org/batik/using/svg-generator.html [5] http://www.w3.org/TR/SVG11/coords.html#TransformAttribute [6] http://tech.groups.yahoo.com/group/svg-developers/ --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org