W3C home > Mailing lists > Public > www-svg@w3.org > December 2006

Should this SVG fragment work?

From: Jeff Schiller <codedread@gmail.com>
Date: Fri, 22 Dec 2006 10:05:10 -0600
Message-ID: <da131fde0612220805k1dde82a9n16d454eb9f054ac6@mail.gmail.com>
To: www-svg@w3.org, public-cdf@w3.org

Hopefully a simple question:

In the XHTML compound document example below, the second SVG fragment
refers to an entity in the first SVG doc fragment.  From an SVG
perspective is this legal?  What about from a WICD perspective?

Works in Firefox2, doesn't work in Opera9.  I'd like to raise a bug
against one of them today...

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
  <body>

    <svg version="1.1" xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink" >
      <defs>
        <radialGradient id="corner" ...></radialGradient>
      </defs>
      <rect fill="url(#corner)" ... />
    </svg>

    <p>Blah</p>

    <svg width="40px" height="40px" version="1.1"
xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink" >
      <rect fill="url(#corner)" ... />
    </svg>

  </body>
</html>
Received on Friday, 22 December 2006 16:05:21 GMT

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