You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by J Aaron Farr <ja...@yahoo.com> on 2002/08/15 17:52:53 UTC

Updating linked documents

Is it possible to dynamically update a document that is linked to the document
you are currently holding in an SVGCanvas?

Let's say I have a document that has a <use> tag, like the batik samples that
link to the little batik logo.  For example:

<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />

Now let's say this document is loaded into a SVGCanvas and displayed in an
applicaiton.

If I wanted to change the colors of the batik logo (which are in a seperate svg
document) using the UpdateManager, how would I do that?  Is it possible?  If I
somehow get the xlink:href value, load that SVG document into a DOM document
object and then manipulate it in an RunnableQueue (from the Update Manager)
will any of those changes be displayed?

I'll admit I haven't tried it yet, but I wanted to know if anyone else has
tried something similiar.  If not, then if I get it to work, I'll post my
solution to the mailing list.

Thanks!
J Aaron

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org