W3C home > Mailing lists > Public > www-svg@w3.org > June 2003

Re: changes in USE elements

From: Jim Ley <jim@jibbering.com>
Date: Thu, 26 Jun 2003 08:36:31 -0000
To: www-svg@w3.org
Message-ID: <bdebat$rq6$1@main.gmane.org>

"Chris Lilley" <chris@w3.org> wrote in message
> 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?

foo.svg can be:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
<svg width="10cm" height="3cm" viewBox="0 0 100 30"
  <rect x=".1" y=".1" width="44.8" height="19.8"
        fill="none" stroke="green" stroke-width=".2" id="MyRect"/>

As to how it could be changed I don't think this should matter, or at least
the problem is relevant for any methods of changing, however for the
purposes of discussion, onmousedown="evt.target.setAttribute('width','599')"
would be enough, then the user mousedowns on one of the MyRect's to change
that instance.


Received on Thursday, 26 June 2003 04:37:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:56 UTC