W3C home > Mailing lists > Public > www-svg@w3.org > May 2008

Re: errata? weather.svgz#sunny

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 2 May 2008 16:01:37 +1000
To: www-svg <www-svg@w3.org>
Message-ID: <20080502060137.GF20246@arc.mcc.id.au>

Jonathan Chetwynd:
> is this supported in UAs?

I don’t know that any of the desktop browsers do support it yet.

> I haven't been able to create anything to demonstrate this working in  
> squiggle or opera

Certainly it’s not implemented in Squiggle.

> I'm really concerned by this, primarily there's no examples, so I'm  
> confused.
> in <svg:use>  xlink:href='http://www.peepo.org.uk/icon-ark/weather-icons.svgz/#sunnyi'
> will only point to - and display - the single symbol with id #sunny.
> is it correct that this symbol would never be displayed? it's a symbol, 
> that's a version of my original errata query
> i used this file: http://www.peepo.org.uk/icon-ark/weather-icons.svgz
> i added a new id="vsunny"
> then tried: file:/Users/jonathanchetwynd/Desktop/weather.svg#vsunny
> but this is merely the default.

Yes that’d be because the browsers don’t support that #element yet.

> also tried:
> file:/Users/jonathanchetwynd/Desktop/ 
> weather.svg#vsunny(viewBox(0,0,200,200))

The syntax needs to be:


I know that SVG view specifications like that will work in Batik and

> <symbol id="sunny" viewBox="0 0 150 150"  >
> </symbol>
> <use xlink:href="#sunny" x="33%" y="72%" width="15%" height="30%"  
> id="vsunny"/>
> there are a few other things, but better take small steps...

> eg: with use-external this seems very confusing requirement to duplicate 
> ids.

With the simple #element syntax (which isn’t implemented widely yet),
you need to have an ID on your <use> element because that’s where the
graphical content is placed.  The <symbol> is just a definition to
re-use.  If you had two <use> elements that used the same symbol, then
you need some way to identify which of those two <use>s you want the
initial view to be zoomed to.

Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 2 May 2008 06:02:16 UTC

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