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
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?

foo.svg can be:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="10cm" height="3cm" viewBox="0 0 100 30"
     xmlns=http://www.w3.org/2000/svg
 xmlns:xlink="http://www.w3.org/1999/xlink">
  <rect x=".1" y=".1" width="44.8" height="19.8"
        fill="none" stroke="green" stroke-width=".2" id="MyRect"/>
</svg>

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.

Cheers,

Jim.
Received on Thursday, 26 June 2003 04:37:06 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:25 GMT