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

changes in USE elements

From: Jim Ley <jim@jibbering.com>
Date: Thu, 26 Jun 2003 00:07:21 -0000
To: www-svg@w3.org
Message-ID: <bdddga$2jo$1@main.gmane.org>

Hi,

After an IRC discussion today on how USE elements should be handled if
the referenced DOM changes, does the use element also change, it was
decided it does.  This led to a problem with external references, to
included document, consider:

<?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">
  <desc>Simple USE demo</desc>
  <rect x=".1" y=".1" width="99.8" height="29.8"
        fill="none" stroke="blue" stroke-width=".2" />
  <use x="20" y="10" xlink:href="foo.svg#MyRect" />
<image xlink:href="foo.svg" id="one"/>
<image xlink:href="foo.svg" id="two"/>
</svg>

If MyRect is changed in the image one, then does the referenced use
change aswell? as it's not been changed in two, which instance takes
precedence?

Jim.
Received on Wednesday, 25 June 2003 20:07:59 GMT

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