- From: Chris Lilley <chris@w3.org>
- Date: Thu, 26 Jun 2003 11:06:15 +0200
- To: www-svg@w3.org, "Jim Ley" <jim@jibbering.com>
On Thursday, June 26, 2003, 10:36:31 AM, Jim wrote: JL> "Chris Lilley" <chris@w3.org> wrote in message JL> news:64363703437.20030626102201@w3.org... >> JL> If MyRect is changed in the image one, then does the referenced use >> JL> change aswell? as it's not been changed in two, which instance takes >> JL> precedence? >> >> Can you provide the foo.svg and explain how myRect is being changed? >> Is it a script running in foo.svg? JL> foo.svg can be: JL> <?xml version="1.0" standalone="no"?> JL> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" JL> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> JL> <svg width="10cm" height="3cm" viewBox="0 0 100 30" JL> xmlns=http://www.w3.org/2000/svg JL> xmlns:xlink="http://www.w3.org/1999/xlink"> JL> <rect x=".1" y=".1" width="44.8" height="19.8" JL> fill="none" stroke="green" stroke-width=".2" id="MyRect"/> JL> </svg> JL> As to how it could be changed I don't think this should matter, or at least JL> the problem is relevant for any methods of changing, however for the JL> purposes of discussion, onmousedown="evt.target.setAttribute('width','599')" JL> would be enough, then the user mousedowns on one of the MyRect's to change JL> that instance. OK so your question is, does an image element make a one-time copy of the file, or does it reference a live copy? It has to be alive copy otherwise the animations etc would not work. I don't see why there are two image elements in your example, in this case - I feel I am missing part of the problem you are stating. -- Chris mailto:chris@w3.org
Received on Thursday, 26 June 2003 05:06:33 UTC