I've just been playing with some code around the bit Stephane suggested (using last night's cvs) and ran into a problem.
SVGLocatable.getBBox() calls SVGOMElement.getSVGContext(), which looks like public SVGContext getSVGContext() { return svgContext; } but svgContext is just a local variable, only accessed by a set method. (I would have thought that it probably would have picked up this value from its owner document, but getSVGContext() seems to have been removed from SVGOMDocument). The code I'm using looks like : String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI; SVGOMCircleElement circle = (SVGOMCircleElement)document.createElementNS(svgNS, "circle"); circle.setAttribute("cx", "10"); circle.setAttribute("cy", "10"); circle.setAttribute("r", "5"); circle.setAttribute("style", "fill:green"); System.out.println(circle.getSVGContext()); // null System.out.println(circle.getBBox().getX()); // null pointer exception Cheers, Danny. --- Danny Ayers <stuff> http://www.isacat.net </stuff> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]