W3C home > Mailing lists > Public > www-svg@w3.org > August 2005

RE: Resolving URIs in shadow trees

From: Jon Ferraiolo <jonf@adobe.com>
Date: Wed, 03 Aug 2005 10:53:24 -0700
To: Mark Birbeck <mark.birbeck@x-port.net>, "'Cameron McCormack'" <cam-www-svg@aka.mcc.id.au>
Cc: www-svg@w3.org
Message-id: <>

At 10:25 AM 8/3/2005, Mark Birbeck wrote:

> > I don't know if I would agree with that.  I'm sure there'd be
> > situations where you want a binding document to have some
> > gradients defined (for
> > example) that are used by all the shadow trees for a
> > particular binding, and you want to use a URI reference that
> > contains only a fragment identifier.  It would be a bit messy
> > to have to include the gradient element in each generated shadow tree.
>Perhaps we need some sort of 'static' declaration, like in C++, where we can
>say that some content is available to all instances of a template, but it
>actually only need occur once. It retains encapsulation, which is one of the
>(many) benefits of XBL.

The way to do a static declaration is to put the resource definition 
outside of the <xbl:template>. For example, here is an SVG file that could 
be imported (as in xbl:import) by another SVG file:

   <linearGradient id="foo"...>...</linearGradient>
     <xbl:definition element="MyNS:MyElement">
         <path fill="url(#foo)".../>


>Mark Birbeck
>x-port.net Ltd.
>e: Mark.Birbeck@x-port.net
>t: +44 (0) 20 7689 9232
>w: http://www.formsPlayer.com/
>b: http://internet-apps.blogspot.com/
>Download our XForms processor from
Received on Wednesday, 3 August 2005 17:53:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:04 UTC