Hi Maik,
Maik Schuerer wrote:
If you are going to display or transcode the file you probably want to wait until after those components 'build' the GVT tree before you do your work.
Yes, I know and getting styles from a (first) SVG which is diplayed at a
JSVGCanvas works fine and is controlled by the SVGDocumentLoaderListener and
GVTTreeBuilderListener. But my (second) SVG document will never be displayed
or manipulate, because it is my 'symbol library' and I want to read some
elements with there styles from it. 'Normal' attributes I can read
immediately after SVGDocumentFactory.createSVGDocument(svgURI) - but why not
the styles ?
>> Because we are a toolkit, we don't automatically build >>the CSS or SVG DOM information (there is additional information >>that we want/need - like a UserAgent for errors/security handling).
What can I do with my 'symbol library' to have access to styles too ? Should I use a second dummy JSVGCanvas to get it work or is there a other way ?
>> If you are just manipulating the document before >> writing it back out then you will have to 'bootstrap' the document >> yourself. Search this list for references to >> GVTBuilder/BridgeContext.
Thanks in advance Maik
----- Original Message ----- From: "Thomas DeWeese" <[EMAIL PROTECTED]>
To: "Batik Users" <[EMAIL PROTECTED]>
Sent: Wednesday, October 06, 2004 12:12 PM
Subject: Re: how to get parts of the 'style' attribute
Hi Maik,
Because we are a toolkit, we don't automatically build the CSS or SVG DOM information (there is additional information that we want/need - like a UserAgent for errors/security handling).
If you are going to display or transcode the file you probably want to wait until after those components 'build' the GVT tree before you do your work. If you are just manipulating the document before writing it back out then you will have to 'bootstrap' the document yourself. Search this list for references to GVTBuilder/BridgeContext.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]