Re: changes in USE elements

"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 UTC