Should this SVG fragment work?

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:25 UTC