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: <6.2.1.2.2.20050803105006.03ed40a0@mailsj-v1.corp.adobe.com>

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

>Cameron,
>
> > 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.
>
>Definitely.
>
>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.

Mark,
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:

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

Jon


>Regards,
>
>Mark
>
>
>Mark Birbeck
>CEO
>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
>http://www.formsPlayer.com/
Received on Wednesday, 3 August 2005 17:53:34 GMT

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