I just updated from 1.5 to 1.5.1 but discovered a problem. In our SVG we've got some elements using symbols from a template SVG via the use-tag. If I change an attribute of such a 'use'ed element the change is not drawn. Only after changing the xlink:href attribute the previously changed style or position take effect. In the previous version of batik that was working with no problems.
Hi Wolfgang,
When you say you change the 'use'ed element you are changing the 'style' attribute on the 'use' element and having it 'cascade' into the symbol content?
If so then yes, this was turned off in 1.5.1, but it was pretty badly broken in 1.5. In particular when this happened the used content was updated using the 'host' document's CSS style sheets. If you really want the old behavior back the change is _very_ minor, in SVGUseElementBridge:197 replace 'isLocal' with 'true'.
PS: All changes to the DOM-tree are made via calls to like
Canvas.getUpdateManager().getUpdateRunnableQueue().invokeLater(new SetElementAttribute(UseElement, MyConstants.StyleAttribute, Style));
This is a pretty heavy weight way to update attributes, I hope you don't do this a lot!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
