Something else just crosses my mind: Is there anything special I should consider with the text if it is divided into TSpanElements? After reading the Specification I thought, that fill-attributes are inherited to all children, but this wouldn't be the first exception from the rule made for a TextElement.
I just checked on that idea, and indeed: When setting the fill-attribute for the TSpanElements beneath the TextElement, everything works fine. Now I need an additional for-loop to traverse all TSpan-Children, but that's a minor inefficiency, I guess. I'd just like to know whether I misunderstood the specification or if it should be the way I thought and Batik doesn't update the properties of TSpanElements correctly when the parent TextElement is changed. Inheritance does work when the image is ínitially loaded on the JSVGCanvas (with colors hardcoded in the .svg-file). I replace the content of the TextElements with TSpanElements, and if a color is set, the text of the TSpanElements has that set color.
Anyway: Thanks for your support on this one, Tonny and Thomas. I'm very close to completing this part of the project.
Bye -Urs
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]